in reply to Re: XML output formatting (XML::LibXML::PrettyPrint)
in thread XML output formatting
XML is a data format, rather than a 'display' format. You can coerce it to 'look pretty' but I'd suggest you're thinking the wrong way if you do. You don't view raw HTML, and expect it to look 'nice', because that's the point of having formatting tags in the first place.
Consider instead using an XSL style sheet - there's some generic ones that exist, or you can put together your own for your data. It's essentially a set of instructions that transform 'XML tags' into 'format' e.g. much the same way as your browser does with the well defined HTML tags. (HTML being a subset of XML in the first place).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: XML output formatting (XML::LibXML::PrettyPrint)
by Anonymous Monk on Dec 10, 2013 at 22:47 UTC |