xml whitespace

R

Rob Blij

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
 
A

Aboulfazl Hadi

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top