| | |
xml appending
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
Ok, so im having data written to an xml file. This xml is regularly written to, so a decent amount of traffic on it. But rarely ever gets viewed.
Right now i read the xml file in with XmlDocument..Load()
Then modify it.
and overwrite using XmlDocument..Save();
Gets the job done perfectly. But i have a few concerns.
Does XmlDocument.Load() put the whole xml document into memory? This file may get large(100mb?) so i dont want to use up a lot of memory if many people are hitting it at once.
And. When many people are hitting it at once. Is there a chance data will be over written/lost if 2 people are using it at once?
What i need help on i guess is a way to directly write at the end of an xml file without loading it. Thanks!
Right now i read the xml file in with XmlDocument..Load()
Then modify it.
and overwrite using XmlDocument..Save();
Gets the job done perfectly. But i have a few concerns.
Does XmlDocument.Load() put the whole xml document into memory? This file may get large(100mb?) so i dont want to use up a lot of memory if many people are hitting it at once.
And. When many people are hitting it at once. Is there a chance data will be over written/lost if 2 people are using it at once?
What i need help on i guess is a way to directly write at the end of an xml file without loading it. Thanks!
•
•
Join Date: Sep 2006
Posts: 26
Reputation:
Solved Threads: 1
hi plazmo,
You can only edit an xml file by loading it completelely.
Since many users hit this xml file , there is every possibility of data loss.
If you want to view only a small content from the xml file, write an xsl file to show only what is needed.
So you can alwasy access the xslt file which gets only the required content and displays it.
But in order to edit, you have to load the entire xml file.
To remove conflicts, it's better you keep this xml file in an ASP page and access the asp page. Then we can make it mandatory that only one person at a time can access the xml file.
please feel free to mail your concerns.
Thanks,
Chaitanya.
You can only edit an xml file by loading it completelely.
Since many users hit this xml file , there is every possibility of data loss.
If you want to view only a small content from the xml file, write an xsl file to show only what is needed.
So you can alwasy access the xslt file which gets only the required content and displays it.
But in order to edit, you have to load the entire xml file.
To remove conflicts, it's better you keep this xml file in an ASP page and access the asp page. Then we can make it mandatory that only one person at a time can access the xml file.
please feel free to mail your concerns.
Thanks,
Chaitanya.
![]() |
Similar Threads
- help help ehlp help plehp with (xml) (VB.NET)
- Append in xml document (C#)
- append to XML file (Visual Basic 4 / 5 / 6)
- ASP.NET <--> XML <--> VB6.0 (ASP.NET)
- help required for implementing project using JAVA & XML (Java)
- searches appearing as .xml files in windows folder (Windows NT / 2000 / XP)
- Php parser error when xml version is mentioned (PHP)
Other Threads in the C# Forum
- Previous Thread: Visual C#: Displaying PowerPoint Slides
- Next Thread: How to COmpare a word file and an XML file
| Thread Tools | Search this Thread |
.net access ado.net algorithm array barchart bitmap box broadcast buttons c# chat check checkbox client color combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees development draganddrop drawing encryption enum event excel file files form format formatting forms function gdi+ httpwebrequest image index input install java label list listbox listener mandelbrot marshalbyrefobject math mouseclick mysql networking object operator path photoshop picturebox pixelinversion post prime programming radians regex remote remoting richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml





