.NET XMLDocument Save issue

Hi,

Currently we are using the .NET XMLDocument Class to manipulate some xml
documents. The issue we are having is that when we save the XML files using
the classes save method, empty xml tags will be saved with a CRLF instead of
the empty value. This can be solved by setting the PreserveWhiteSpace
property to true. But then the indentation is lost.

E.g.:-
Before Saving this is how the tags are.

<Test></Test>

After saving

<Test>
</Test>


Has anybody come across this, is there any solution for this.

Thanks
Amendra.


0
amendra (4)
10/16/2003 3:23:02 AM
dotnet.xml 7266 articles. 0 followers. Follow

0 Replies
839 Views

Similar Articles

[PageSpeed] 49

Reply:

Similar Artilces:

Row Not Found at the Subscriber
http://sanssql.blogspot.com/2010/05/row-not-found-at-subscriber-replication.html Regards, Sandesh Segu http://sanssql.blogspot.com/ ...

Reminder issues for Outlook 2010
When sending and receiving appointments the reciever is getting a default reminder for everything. We can shut off the defaults, uncheck the reminder before sending and still it defaults to 15 min reminder. With the number of appointments that we share, this has become a real pain. Please help with any advise and or suggestions. What version of Exchange server? There is a known issue with Exchange 2007. http://support.microsoft.com/default.aspx?scid=kb;en-us;973761 -- Diane Poremsky [MVP - Outlook] Outlook Tips: http://www.outlook-tips.net/ Outlook & Exchange Solutions ...

eConnect - MSMQ
I am able to send the xml data to MSMQ (server\private$\econnect_incoming75) que. The que is read by MBS eConnect service and then is deleted from the Que messages. The que apears in journal messages. The data never gets inserted into SOP tables. (SOP10100). The eConnect event viewer does not shows any errors. I am running MSMQ and eConnect on Windows 200 server. The eConnect and MSMQ runs on local system account. For MSMQ, If i log on This account, the MSMQ eConnect que disappeared. Anybody has any idea what must be the problem? Hi What account are you using for "This Acc...

saving slides as png/jpeg @ 1280x800
I have created a presentation with screen size 1280x800. When I save individual files as png or jpeg, they are saved as 960x600, which is a different size. Is there a way to export individual slides at 1280x800? On 30 Apr, 17:01, Alessandra <acima...@gmail.com> wrote: > I have created a presentation with screen size 1280x800. When I save > individual files as png or jpeg, they are saved as 960x600, which is a > different size. =A0Is there a way to export individual slides at > 1280x800? I forgot to say I am using PowerPoint 2007. I use an add-in to do this (ove...

Problem with XmlDocument.Load method.
I get an unhandled exception, when I try to execute XmlDocument.Load(...) in my C# Windows application: -------------------------------------------- "Common Language Runtime Debugging Services" Process id... thread id... Click OK to terminate ... Click Cancel to Debug ... -------------------------------------------- Running environment: Windows 2000 Terminal Server, .NET Framework 1.1 with all latest service packs. But strangest thing is - if I run the same programm as an administrator,everything runs well, but if user is power user or User - I get this exception. Even more - I c...

100% cpu utilization during save as
I'm wondering if anyone here can help me with this. When I'm typing a filename in the Save As dialog box in Excel 2003, excel.exe shoots up to 100% CPU utilization and it takes a second or two for the letters I've typed to show up. This only happens when I'm trying to save to a network location. The same issue comes up in Word 2003 and Powerpoint 2003, but not in any other windows applications. Any ideas? Thanks --Cam If this is only to a network location, it suggests a problem on the network side - or permissions. But are you using mapped drives for this? If so, try ...

Word always asks to save changes to the template
For my work we have made templates for different letters we have to send. Our application (VB6) calls those templates when we want to send a letter. Using the code we follow a few steps : - open word - open a new document using our template - save the document (.doc) on a server - sometimes print the document - sometimes immediately close the document (when we don't want users to modify the document afterwards) When they closed the document the users always get 2 questions : - save changes to template for the letter - save changes to normal.dot I already found a solution to avoid the q...

Converting from XmlDocument to XmlReader
I need to write a method that takes System.Xml.XmlDocument and Xsd Path to validate XmlDocument. How can I convert XmlDocument to XmlReader? Bostonasian wrote: > I need to write a method that takes System.Xml.XmlDocument and Xsd Path > to validate XmlDocument. > How can I convert XmlDocument to XmlReader? [.NET 1.X] Efficient way is to use XmlNodeReader, but that won't help with validation. For validation you need XmlTextReader, so usual way of doing it (not really efficient, but working one) is XmlTextReader r = new XmlTextReader(new StringReader(xmlDoc.OuterXml)); Xmlvalid...

Publisher font issue
I have an issue with Publisher 2000 and the calendar font size. The defaulted font size is 18. In each calendar date box, when I enter information is a smaller font (8 font), and save; close the program and then reopen; the 8 font text defaults to 18 font. I need the smaller font for information that needs to go into the calendar. I have tried a few tings through the help feature but nothing I do seems to work. Can someone help me with this or tell me how to fix this problem? Thanks Try this, put the calendar on the background (master page) Ctrl + m , use text boxes for your i...

Saving Word E-Mail as a Revision/Draft
Hi, I would like to be able to use the E-Mail feature in Word 2003 to save an email as a draft/revision for future use. I do not want to save the word doc as an attachment. Is this possible? Thanks, Josh Why don;t you just create the word doc, save it, and then email it when you're ready. -- JoAnn Paules MVP Microsoft [Publisher] Tech Editor for "Microsoft Publisher 2007 For Dummies" "JoshB" <JoshB@discussions.microsoft.com> wrote in message news:9710F08D-64E2-45B7-8115-BE8F0B116369@microsoft.com... > Hi, > I would like to be...

how to use a saved master page
I have created a new master page and saved it as a .pub file. The question is when opening a new document, how do I apply the saved master file? Open the master file, copy, paste to your new publication. -- Mary Sauer MSFT MVP http://office.microsoft.com/ http://msauer.mvps.org/ news://msnews.microsoft.com "Colin" <Colin @discussions.microsoft.com> wrote in message news:A3C59647-7D56-46B9-AA56-C707538ECDED@microsoft.com... >I have created a new master page and saved it as a .pub file. The question > is when opening a new document, how do I apply the saved mas...

Thrift Savings Plan #2
Does anyone know an accurate way of tracking the military retirement plan, TSP? I have just added an account called TSP and modeled it like a 401(k). Then for each of the funds you have, just add a new investment. You won't have a stock symbol or anything. Some days, I manually update the fund prices, and others I don't. It will calculate your returns whenever you make new transactions. I basically just make those investment transactions whenever I get my quarterly statement. I don't know of a better way of tracking the TSP. "Anthony" wrote: > Does anyone ...

Exchange Migration Issue
Hello All, I have multiple copies of email in my user email accounts after migration. I used Exchange Migration Tool to Migrate email accounts from Exchange 2000 to Exchange 2003. Since we did not switch over to the new server right away , there were 2 days of emails still pending to be imported so I used the Migration tool again to migrate emails filtered based on date, but it seems that exchange migration has migrated all emails again, and now users have 2 to 3 copies of each email. Is there a way to remove the duplicate copies ? if so how can I go about doing that? Any pointer...

Setting email so server will not save emails on server
I have two computers. ( Desktop & laptop) I seldom use the laptop but when I do use it and get my emails it brings up every email that I have already read and deleted from desktop. Is there a setting where I can set so the server will not keep the deleted emails? On both machines: Tools | Accounts | Mail | Properties | Advanced - Check: Leave a copy of messages on the server. On one machine only, (The desktop would be logical for you), check to Delete messages after X days to satisfy your allotted space you get from your server, and Remove from server when d...

Entourage communication issue
My entourage quit communicating last week. Worked fine wednesday, thursday not. I can open entourage, but it won't send or retrieve mail. times out and gives a message that it's a server issue. My wife's works fine. tried installing the latest upgrade from microsoft, still no change. Both our macs have the same email configuration. tried the fixes given in the help section - snding myself an email, restarting entourage, etc, nothing. I'm not a computer genius, and need help. By the way, if i go into windstream via the internet, every thing's normal Thanks,Tj On 7/24...

store mounting issues
(this is not related to my other similar post today) My client's sbs machine was affected by sudden shutdown in a storm. Now when the server restarts we have to manually mount the stores. I will check to see if the database is dirty and it probably is, do I need to restore from backup? This seems toi be a time consuming operation, is the best way to proceed? I would start by looking in the Event Log. -- Ed Crowley MVP - Exchange "Protecting the world from PSTs and brick backups!" "pepper" <pepper@discussions.microsoft.com> wrote in message news:28C8A34D-E...

Selection.AutoFilter Issue
I have the same code for 5 different reports. The only difference in code is the criteria filtered and removed. All reports filter and remove the desired data just fine except for one. The code is below and it is the same each reports with the exception of the worksheets it is deleting and Criteria1 for each sheet. NOTE: The BCP E&M code below filters correctly but not the others...and they are the same code! Any help would be greatly appreciated. Dim myLastRow As Long Dim myLastColumn As Long Dim myLastCell As String Dim myRange As String Dim Newbook As String Di...

ServerXMLHTTP in .NET ?
Hi, is there something like the ServerXMLHTTP object from MSXML available in .NET ? I searched in the VS help, but just found documentation for the MSXML object.... Greetings, Raik See docs for: System.Net.HttpWebRequest System.Net.HttpWebResponse -- Teemu Keiski MCP, Designer/Developer Mansoft tietotekniikka Oy http://www.mansoft.fi ASP.NET Forums Moderator, www.asp.net AspAlliance Columnist, www.aspalliance.com Email: joteke@aspalliance.com "Raik Hoffmann" <raik.hoffmann@invensys.com> wrote in message news:098701c33fb9$998d4da0$a301280a@phx.gbl... > Hi, > ...

HTML report in vb.net
How do I create an html report in vb.net instead of Crystal or ReportViewer? Hello, > How do I create an html report in vb.net instead of Crystal or > ReportViewer? Pretty vague. If the problem is to create html markup you could try the HtmlTextWriter class (http://msdn.microsoft.com/en-us/library/system.web.ui.htmltextwriter(VS.80).aspx to see if it's easier for you. Also most Reporting Packages (including RS, note sure about Crystal but very likely) are able to render a report as HTML markup so you could perhaps still use them. Not sure what is your scena...

how to save settings for printing several envelopes
I want to print addresses on several envelopes which are the same size but the addresses are different (for Christmas cards). Is there a way to do this without going to options each time and reset the size and font that I want? Create an envelope template. You can start from scratch with a new document, selecting the desired paper size (or specifying a custom size) or use Add to Document to add your envelope to the current document. Then see http://sbarnhill.mvps.org/WordFAQs/DetachEnvelope.htm for instructions on separating the envelope from the document. Once you have just the ...

Why Excel 2007 not responding after saving
I have reinstalled Excel 2007 (Office Home & Student) but it is worse. Now having problems even opening files. If I click on a cell it pauses for ages and then says it is not responding. Try looking for help here: http://support.microsoft.com/?scid=ph;en-gb;8753#tab3 "Xandersmum" wrote: > I have reinstalled Excel 2007 (Office Home & Student) but it is worse. Now > having problems even opening files. If I click on a cell it pauses for ages > and then says it is not responding. ...

COM communicate with managed code(.NET)
Hi! When I have a communication from COM to managed code(.NET) a type library(TLB) is necessary in between to handle the communication from COM to ..NET. I tried to use Red Gats's reflector to look into the type library that have extension tlb but it's not possible. So why is it not possible ? //Tony "Tony Johansson" <johansson.andersson@telia.com> wrote in message news:O%23lutgv5KHA.5464@TK2MSFTNGP05.phx.gbl... > I tried to use Red Gats's reflector to look into the type library that > have extension tlb but it's not possible. ...

everything wants to connect to net
I've been happily running Outlook 2002 for a year or more. Recently uploaded activsynd and reinstalled Outlook 2002 with my new pda (ipaq h2210). Now everything seems to want to connect to the net and it didn't before. I don't have broadband so, this is irritating. Can I stop that happening? Martin ...

re-using XmlDocument to load fragments
Hi... We've got a lot of places in our code where we read relatively small xml user preference blocks. Currently that's creating a new XmlDocument in every spot. I was thinking we might see some speed improvements by having one, central XmlDocument and using doc.ReadNode() to process all of the fragments. Other than pumping up the NameTable with a mish-mash of different node names and namespaces, are there any other implications I'm missing? As an aside, I noticed that doing doc.Load() on a dom more than once keeps the same NameTable object. What does the XmlDocument do ...

Font Issue 12-01-09
> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3342466225_2506650 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: 8bit I upgraded my iMac to Snow Leopard and tried as best I could to follow the directions re deleting old and duplicate fonts for Office 2004 and 2008. That seemed to correct the gibberish I was getting in Entourage, but I am left with constant �error� messages asking me if Entourage (2008) can use a font on one of my several external...