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
Advice needed... getting data from another application into Access
ASP.Net asynchronous sql execution
Automatically rename an Excel worksheet with previous days date, excluding weekends
How do I programmatically set the recordsource in a subreport?
how to keep the session variable alive until the user close the browser?
SharePoint: Error Moving File or Folder Cannot Read from Source File or Disk
How to recover moved files and deleted files from Windows machine
trouble with Access buttons
how do I change the default name in a comment box in Excel 2007?
based on one column value populate another column