471,605 Members | 1,564 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,605 software developers and data experts.

xml whitespace

The XMLDocument.Load method is breaking on certain whitespace AFTER the
closing tag of a particular element. Is there anyway I can remove this
whitespace or deal with it in someway so the document loads?

tx
Rob
Feb 20 '06 #1
1 2131
Hi
From MSDN:

White Space and Significant White Space Handling when Loading the DOM :

When loading the document, you can set the option to preserve white
space and create XmlWhitespace nodes in the document tree. To create
white space nodes, set the PreserveWhitespace property to true. If the
property is set to false, which is the default, white space nodes are
not created. Significant white spaces nodes are always preserved, and
XmlSignificantWhitespace nodes are always created in memory to
represent this data, regardless of the setting of the
PreserveWhitespace flag.
let me know if it is useful
A.Hadi

Feb 20 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Thomas Mlynarczyk | last post: by
2 posts views Thread by Wolfgang Jeltsch | last post: by
2 posts views Thread by Carlitos | last post: by
2 posts views Thread by Carlitos | last post: by
3 posts views Thread by David Pratt | last post: by
9 posts views Thread by amattie | last post: by
5 posts views Thread by John Gordon | last post: by
13 posts views Thread by Chaim Krause | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by MichaelMortimer | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.