![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi! Is there any way of preserving whitespaces inside nodes, e.g. line breaks, when using XmlDocuments? If I for example have a string with the following content: root wot id="1" name="wot1" /wot /root and loads it into XmlDocument, with PreserveWhitespace set to true, the line breaks inside <wot> will disappear when I output the xml to a string. Can this be avoided? Best regards, Magnus |
#3
| |||
| |||
|
|
Hi! Is there any way of preserving whitespaces inside nodes, e.g. line breaks, when using XmlDocuments? If I for example have a string with the following content: root wot id="1" name="wot1" /wot /root and loads it into XmlDocument, with PreserveWhitespace set to true, the line breaks inside <wot> will disappear when I output the xml to a string. Can this be avoided? |
#4
| |||
| |||
|
|
Magnus Nilsson wrote: Hi! Is there any way of preserving whitespaces inside nodes, e.g. line breaks, when using XmlDocuments? If I for example have a string with the following content: root wot id="1" name="wot1" /wot /root and loads it into XmlDocument, with PreserveWhitespace set to true, the line breaks inside <wot> will disappear when I output the xml to a string. Can this be avoided? The line break inside the wot element e.g. the wot /wot should be preserved. I don't think there is a way to preserve the line breaks inside the start tag i.e. the line breaks that separate the attributes. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |