On Tuesday 16 October 2007 16:33:31 Mark Rogers wrote:
They're not formatted - there are no line breaks in the files -
[...]
I don't really want to have to preprocess the files to tidy them before opening, though, as the files change frequently.
Therefore this may not be all that helpful, but I use this to make unreadable XML readable:
$ xmllint --format file.xml [1]
What are good (preferably GUI) tools for this kind of thing?
Again, it doesn't quite fit your requirements, but I use nxml-mode[2] in emacs and I haven't yet managed to make it struggle with large files.
Another thing you could consider (but, again, straying a bit far from your question) is using XPath to get the bits you want. Lots of tools do that including xmlstarlet[3], XML::XPath[4] (includes an xpath command), and (my favourite) Python lxml[5].
Cheers, Richard
[1] http://xmlsoft.org/xmllint.html [2] http://www.thaiopensource.com/nxml-mode/ [3] http://xmlstar.sourceforge.net/ [4] http://search.cpan.org/dist/XML-XPath/ [5] http://codespeak.net/lxml/