473,387 Members | 1,590 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,387 software developers and data experts.

Custom XML Parser (without using XmlDocument)

Hi,

I'm wondering on how to go about writing a simple XML parser, one that
doesn't use the XmlDocument class (DOM API) and relies only on
(in-built, so to say low-level) file system and string parsing
functions. Are there any examples or sample code that illustrates on how
to go about building a custom XML parser on these lines. The main issue
is that I'm not quite sure about how to render the XML file to an
in-memory data structure of some sort using a custom parsing approach.
Once I manage to build an in-memory hierarchical data structure from the
XML data file, I can manipulate it further.

Any ideas or suggestions will be very helpful. Thanks!
Nov 18 '05 #1
1 993
look at the xmlreader class

-- bruce (sqlwork.com)
"RiceGuy" <9i*************@jetable.org> wrote in message
news:d7**************************@posting.google.c om...
Hi,

I'm wondering on how to go about writing a simple XML parser, one that
doesn't use the XmlDocument class (DOM API) and relies only on
(in-built, so to say low-level) file system and string parsing
functions. Are there any examples or sample code that illustrates on how
to go about building a custom XML parser on these lines. The main issue
is that I'm not quite sure about how to render the XML file to an
in-memory data structure of some sort using a custom parsing approach.
Once I manage to build an in-memory hierarchical data structure from the
XML data file, I can manipulate it further.

Any ideas or suggestions will be very helpful. Thanks!

Nov 18 '05 #2

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

Similar topics

1
by: Joe Kehnast | last post by:
I have a couple of xml dll's installed on my machine. I used a Microsoft utility to determine which version is used by Internet Explorer. I would like to know how to configure IE to use a...
1
by: Leila | last post by:
Hi folks, I have a fairly complex xml document which looks like this: <my:InsideView xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2004-08-02T14:22:59" xml:lang="en-us">...
2
by: Chris | last post by:
Im hoping someone can help me understand why this works? Requirement: Navigate DOM through javascript to perform DHTML actions. Issue: GIANT html document, up to 4MB in size, thousands and...
5
by: reddy | last post by:
I am trying to insert a node into an XMLFile. using XMLTextwriter. My Question is Is it possible to do without using XMLDocument. Because its loading all the the file into memory. I just want to...
1
by: RiceGuy | last post by:
Hi, I'm wondering on how to go about writing a simple XML parser, one that doesn't use the XmlDocument class (DOM API) and relies only on (in-built, so to say low-level) file system and string...
7
by: majid | last post by:
I want write a program with c# to pars a html file how ccan i do this with system.mshtml? or there is other way to do it p;ease help me?
1
by: Hans [DiaGraphIT] | last post by:
Hi! I have problem with passing data to custom action. I don't know what wrong I'm doing. I'm trying to follow the steps in the walkthrough: "Passing Data to a Custom Action" ...
1
by: pachyphloia | last post by:
I have a problem understanding what is happening when inheriting from XmlUrlResolver. Using standard settings (including the default XmlResolver) I can use a dtd given in the doctype for...
4
by: John Smith | last post by:
How can I allow someone to cast my C# class into System.String? Is it possible in C#? In C++ I used "operator" keyword to mark C++ member function.
3
by: brian.f.oneil | last post by:
I need to be able to read some element values and populate some element values for some XML documents submitted to a service, but I can not predict the NameSpace in the documents. I have been...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.