473,398 Members | 2,525 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

XML Serialization or parsing

hello

I have a configuration file for my program. This file contains some
list of files, and some other random infos like this :

<pdod>

<Project>
<Name>My Project Name</Name>
<Id>4242</Id>
</Project>

<Config>
<Platform>All</Platform>
<OutputType>Dll</OutputType>
<AssemblyName>MyDll</AssemblyName>
<CompileFiles>
<File dir="./">file.c</File>
<File dir="./">file2.c</File>
<File dir="./">file3.c</File>
</CompileFiles>
<References>
<File>include.h</File>
<File>library.dll</File>
</References>
</Config>
<File dir="./">file.c</File>
<File dir="./">file2.c</File>
<File dir="./">file3.c</File>
<File dir="./">file4.xml</File>
<File dir="./include/">include.h</File>
<File dir="./">library.dll</File>
</pdod>

I m gonna need to add, edit and remove files name contained in this
conf xml file, and modify other infos

I was wondering which method should i use?

XML Serialize or XMLtextreader /writer ?

My only requirement is *processing speed*, so which method is the
fastest?

thanks

Jun 1 '06 #1
1 1410
up....
gi******@gmail.com wrote:
hello

I have a configuration file for my program. This file contains some
list of files, and some other random infos like this :

<pdod>

<Project>
<Name>My Project Name</Name>
<Id>4242</Id>
</Project>

<Config>
<Platform>All</Platform>
<OutputType>Dll</OutputType>
<AssemblyName>MyDll</AssemblyName>
<CompileFiles>
<File dir="./">file.c</File>
<File dir="./">file2.c</File>
<File dir="./">file3.c</File>
</CompileFiles>
<References>
<File>include.h</File>
<File>library.dll</File>
</References>
</Config>
<File dir="./">file.c</File>
<File dir="./">file2.c</File>
<File dir="./">file3.c</File>
<File dir="./">file4.xml</File>
<File dir="./include/">include.h</File>
<File dir="./">library.dll</File>
</pdod>

I m gonna need to add, edit and remove files name contained in this
conf xml file, and modify other infos

I was wondering which method should i use?

XML Serialize or XMLtextreader /writer ?

My only requirement is *processing speed*, so which method is the
fastest?

thanks


Jun 5 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: John Hoffman | last post by:
Hello, I've got a client server app that passes C# objects back and forth using TCP/IP Async Sockets and Serialization. Works great in the lab, but when I try it on a the internet or through a...
1
by: Mountain Bikn' Guy | last post by:
We have an app that computes a lot of numeric data. We would like to save to disk about 1-2 gigabytes of computed data that includes ints, doubles, strings and some complex objects that contain...
3
by: Aaron Clamage | last post by:
Hi, I'm not sure that if this is the right forum, but any help would be greatly appreciated. I am porting some java serialization code to c# and I can't figure out the correct way to do it. ...
10
by: Jesper | last post by:
Hi, I'm writing a program which is, and will continue to be, constantly extended with functionality that require information. Until now the source of this information has been found and modified...
0
by: John | last post by:
Hi, I am serializing objects on a worker thread, but when I attempt to deserialize on a different thread, I get the error : An unhandled exception of type...
8
by: Pavils Jurjans | last post by:
Hello, I have been developing an Ajax-style framework for couple of years now. Now I am reworking some parts of it. The problem was that I used to use JSON for JavaScript value...
3
by: _DD | last post by:
I had one experimented with binary serialization of an ArrayList of structs (each struct mostly contains strings). Strangely enough, it did not run as fast as custom XML storage (latter was...
2
by: JM | last post by:
Hello, Most of the examples I've seen with XMLReaders, serialization, etc,. involve a text file on a file system. Does anybody have a start to finish VB.NET example of reading an XML Document...
1
by: kikisan | last post by:
I am developing a windows service which utilizes the following classes: interface IPersistable; abstract class PersistableObject : IPersistable;
2
by: mkvenkit.vc | last post by:
Hello, I hope this is the right place to post a question on Boost. If not, please let me know where I can post this message and I will do so. I am having a strange problem with std::string as...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.