[xml] How to output formated xml document?

For example, i want to output a xml document looks like:
     <node1>node1 value</node1>
     <node2>node2 value</node2>

other than:
<root><node1>node1 value</node1><node2>node2 value</node2>......</root>

I have tried the "xmllint" example by using "--format" argument, but it doesn't work.
Any ideas?

Hotmail: Free, trusted and rich email service. Get it now.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]