tag:blogger.com,1999:blog-7354418957262058264.post5377732621088406761..comments2024-03-28T10:05:43.509+00:00Comments on Brian O'Donovan (aka BOD): Beware of XML PrettyPrinting ServiceBrian O'Donovan (BOD)http://www.blogger.com/profile/10652457466416412942noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-7354418957262058264.post-71938432752106830922009-11-16T12:35:31.452+00:002009-11-16T12:35:31.452+00:00Sorry, can't help you there, I don't edit ...Sorry, can't help you there, I don't edit XML frequently, and when I do, I use Vim (as for basically everything else :P). If you ever want to turn to the "dark side", this can help you set it all up:<br /><br />http://www.pinkjuice.com/howto/vimxml/Jacobo de Verahttps://www.blogger.com/profile/09097448434604272141noreply@blogger.comtag:blogger.com,1999:blog-7354418957262058264.post-38478997215417655752009-11-13T10:53:00.053+00:002009-11-13T10:53:00.053+00:00Jacobo,
Thanks for the tip. That XSLT code is so ...Jacobo,<br /><br />Thanks for the tip. That XSLT code is so simple that it should be easy to implement a pretty printer which did just that and could not go wrong<br /><br />The reason I went for an on-line pretty printing service was because I was lazy and didn't want to bother installing anything. The better solution would be to use something more powerful than a text editor to edit my XML. Is there an eclipse plugin that you would recommend for editing XML?<br /><br />BrianBrian O'Donovan (BOD)https://www.blogger.com/profile/10652457466416412942noreply@blogger.comtag:blogger.com,1999:blog-7354418957262058264.post-87069811545653010312009-11-13T07:29:25.654+00:002009-11-13T07:29:25.654+00:00Hi Brian,
I've done this before using XSLT. T...Hi Brian,<br /><br />I've done this before using XSLT. The advantage of this method is that it is local and you don't need to share your XML with any online tool. It is also faster.<br /><br />I don't have the XSLT file I used any more (it was some long time ago), but a quick google search shows some examples like this one:<br /><br /><a href="http://faq.javaranch.com/java/HowToPrettyPrintXmlWithXsl" rel="nofollow">http://faq.javaranch.com/java/HowToPrettyPrintXmlWithXsl</a>Jacobo de Verahttps://www.blogger.com/profile/09097448434604272141noreply@blogger.com