Formatting of XML-Files

Running the code formatter on an XML-File causes Build 2218 to freeze. Does somebody else observe the same ?

I use the option that all file types use the same formatting style.

Kind regards

Thomas Gülden
Munich, Germany

5 comments
Comment actions Permalink

Works fine for me. Build 2218 XP.

John
"Thomas Gülden" <no_mail@jetbrains.com> wrote in message
news:8245671.1090510424474.JavaMail.itn@is.intellij.net...
Running the code formatter on an XML-File causes Build 2218 to freeze. Does
somebody else observe the same ?

I use the option that all file types use the same formatting style.

Kind regards

Thomas Gülden
Munich, Germany


0
Comment actions Permalink

Well, I figured out, that it took very long (more than 5 minutes) and during that time there wasn't any hint that something is still in progress. The file contained data, and was about 15000 lines long.

So I think that reformatting in the background and just locking the currently formatted file for editing could be a solution ?

Kind regards

Thomas Gülden
Munich Germany

0
Comment actions Permalink

So I think that reformatting in the background and just locking the currently formatted file for editing could be a solution ?


No, not really. A solution would be to do the reformat in less than two seconds ;)
That should not be that hard - it's not like reformating a text file requires serious number crunching.

I regularly work with xml files (xmi models) that are between 1 MB and 300 MB in size. I gave up loading anything bigger than 3MB in Idea and even for a 1MB file reformat takes ages.

0
Comment actions Permalink

So what do u use to reformat xml files greater than 1 MB?

0
Comment actions Permalink

A few lines of java code I wrote myself - using a sax reader with a 'saving' content handler.

0

Please sign in to leave a comment.