[xml] Preserve Whitespace in Attribute List



Is it possible to preserve whitespace in an attribute list?
In the example below their are 2 attribute name/value pairs,
each appearing on separate lines.
<team>
<name>Syracuse</name>
<coaches  head="Boehiem"
          assist="Fine"/>
</team>

xmlParseMemory
xmlDocGetRootElement
xmlDocDumpMemory or xmlNodeDump
When using libxml2 to load, parse,and dump an XML document
(xmlDocPtr) from memory the output always contains the attributes
on a single line. (e.g. <coaches head="Boehiem" assist="Fine"/> )

Whitespace can be preserved/removed between XML elements,
however can whitespace be preserved within an attribute list?

Thanks........Dan



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