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
How do I uninstall Advanced Mass Sebder?
VBA ADO: .GetString method causes .MoveNext method to fire - anyone know why?
How to edit an access(.adp) project using Visual Basic for Applications?
Save unbound combobox column value in Access 2007
how to run dos command in vb.net2003 windows application coding?
SSRS Remove A User Account
Timesheet Excel Tempalte -- calculating regular,overtime1,overtime<wbr />2
Multiple Values in RDLC Matrix
Terminal Server and Sharepoint question
OWA Publishing over ISA