473,385 Members | 1,630 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,385 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 16 '05 #1
1 2508
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 16 '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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
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?
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...

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.