Bartosz Kosarzycki's blog - developers' issues being solved
If you’ve installed XML Tools for Notepad++ and after pressing ctrl+shift+alt+B (pretty format XML with line breaks) you get an error:
“Error in content. […..]”
Look for ANY non-UTF-8 characters in your XML. That could be the case.
Why can't this be ignored by the plugin. I just want the pretty print. With large XML files it can be a pain looking for that one character. XML Spy 2010+ does work with these characters, even with multiple root elements.
Thanks for the hint: non-UTF-8 characters were causing problems with the pretty print. Thanks again!
So, what to do???
This is not the problem. The same text works on another station.
I made mine working. I had to let only lines between <...> ;)
This was the problem for me, I replaced all instances of the "&" character with underscores, then process worked fine.
encoding="utf-8"
If you like this post, please leave a comment :)
Why can't this be ignored by the plugin. I just want the pretty print. With large XML files it can be a pain looking for that one character. XML Spy 2010+ does work with these characters, even with multiple root elements.
ReplyDeleteThanks for the hint: non-UTF-8 characters were causing problems with the pretty print. Thanks again!
ReplyDeleteSo, what to do???
ReplyDeleteThis is not the problem. The same text works on another station.
ReplyDeleteI made mine working. I had to let only lines between <...> ;)
ReplyDeleteThis was the problem for me, I replaced all instances of the "&" character with underscores, then process worked fine.
ReplyDeleteencoding="utf-8"
ReplyDelete