Microsoft
Software
Hardware
Network
Question : XmlDocument.Load(Stream) method is removing tabs between tags
Hi
I'm using the XmlDocument.Load(Stream) method to load a stream into a xml document. Now I've found out that the load method is "optimizing" the xml structure, i.e. it removes single tabs between tags, which is destroying my document. If the tab is followed by another character, the tab is not removed, but if there is only a tab and nothing more between two tags, it gets removed!
Example:
123
--- removes the tab between and
123
1
--- tab remains after loading
Is there a way to load a stream containing xml data into a xml document without losing the tabs?
Thank you!
Kind regards
Martin
Answer : XmlDocument.Load(Stream) method is removing tabs between tags
Hi,
Set the PreserveWhitespace flag to true before loading.
XmlDocument.PreserveWhites
pace = true;
/peter
Random Solutions
Comparing Data between two tables
DNS records for TLS in OCS 2007 R2
How do I determine if a server is or was a DC
How to limit rows a user sees after logging to an APEX application
How do I reduce the memory iexplore.exe is using, as it can get as high as 260,000k
reuse code ,forms from other database without copy
How would I extract one of each number in an excel column that contains many copies of hundreds of numbers?
Deploy a change in registry in a terminal server farm
Ms Access to SQL Server DSN or connection string
BAR CHART in EXCEL data is upside down..