473,500 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Newibe C++ XML Questions

BCC
Hi,

I have a small app that needs to read in an xml file that I create, and then
initialize some variable and objects with the data in the file.

Ive taken a look around and still cant decide which way I should go for c++
in VC7.

I downloaded and installed xerces, and holy crappola, there is waaaaay too
much information there for me to sort out what I need. Between the DOM,
event driven SAX1, SAX2, I have really no clue where to go.

I managed to use SAX2 to read in my xml document, but I cant find any
documentation anywhere that tells me how to extract the info I need from the
xml and use it. All the sample apps from the xerces site either read in a
file or just write one out... I dont see where they read one in and suck out
the data within the file. Very frustrating.

Is xerces really the best way to go?? Seems like way overkill for what I
want to do, and quite simply, I cant figure out how to use it. .NET has its
own xml parser, but I dont want to use managed C++.

Do I want to use DOM or SAX? Are there other smaller utilities that will
get me to where I want to go?

Any suggestions are appreciated.

Bryan
Jul 20 '05 #1
2 1562
BCC wrote:
Hi,

I have a small app that needs to read in an xml file that I create, and then
initialize some variable and objects with the data in the file.

Ive taken a look around and still cant decide which way I should go for c++
in VC7.

I downloaded and installed xerces, and holy crappola, there is waaaaay too
much information there for me to sort out what I need. Between the DOM,
event driven SAX1, SAX2, I have really no clue where to go.

I managed to use SAX2 to read in my xml document, but I cant find any
documentation anywhere that tells me how to extract the info I need from the
xml and use it. All the sample apps from the xerces site either read in a
file or just write one out... I dont see where they read one in and suck out
the data within the file. Very frustrating.

Is xerces really the best way to go?? Seems like way overkill for what I
want to do, and quite simply, I cant figure out how to use it. .NET has its
own xml parser, but I dont want to use managed C++.

Do I want to use DOM or SAX? Are there other smaller utilities that will
get me to where I want to go?

This is off topic in clc++, regarding vc++ you should ask in
microsoft.public.dotnet.languages.vc.
If it doesn't appear in your news server use the public MS newserver:

msnews.microsoft.com
That said, .NET provides full XML support of its own.
Check

http://msdn.microsoft.com/library/de...tframework.asp
and especially the classes XmlTextReader, XmlTextWriter (forward only
parsing), XmlReader, XmlWriter, XmlDocument (in memory DOM
representation of an XML document), XPath, for queries and others.
Probably you will have to read a book or something. There are
specialised .NET books for XML, that you may read.


--
Ioannis Vranos

http://www23.brinkster.com/noicys
Jul 20 '05 #2


BCC wrote:

I have a small app that needs to read in an xml file that I create, and then
initialize some variable and objects with the data in the file.

Ive taken a look around and still cant decide which way I should go for c++
in VC7.


So you are on Windows and build a Windows application? Microsoft has
MSXML, a COM based software package for XML parsing including SAX, DOM,
XSLT, XPath support, in MSXML version 4 even XML schema support.
Check out http://msdn.microsoft.com/ for MSXML 4, you can get the SDK
there, then ask further questions in the XML groups on the MS news
server news.microsoft.com.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 20 '05 #3

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

Similar topics

0
4069
by: softwareengineer2006 | last post by:
All Interview Questions And Answers 10000 Interview Questions And Answers(C,C++,JAVA,DOTNET,Oracle,SAP) I have listed over 10000 interview questions asked in interview/placement test papers for...
0
4544
by: connectrajesh | last post by:
INTERVIEWINFO.NET http://www.interviewinfo.net FREE WEB SITE AND SERVICE FOR JOB SEEKERS /FRESH GRADUATES NO ADVERTISEMENT
2
7150
by: freepdfforjobs | last post by:
Full eBook with 4000 C#, JAVA,.NET and SQL Server Interview questions http://www.questpond.com/SampleInterviewQuestionBook.zip Download the JAVA , .NET and SQL Server interview sheet and rate...
4
2493
by: Drew | last post by:
I posted this to the asp.db group, but it doesn't look like there is much activity on there, also I noticed that there are a bunch of posts on here pertaining to database and asp. Sorry for...
8
7950
by: Krypto | last post by:
Hi, I have used Python for a couple of projects last year and I found it extremely useful. I could write two middle size projects in 2-3 months (part time). Right now I am a bit rusty and trying...
0
1472
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7...
1
1600
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7...
0
4466
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7...
0
3410
by: reema | last post by:
EJB Interview Questions http://interviewdoor.com/technical/EJB-Interview-Questions.htm CSS Interview Questions http://interviewdoor.com/technical/CSS-Interview-Questions.htm C Interview Questions...
0
7136
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
7182
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,...
1
6906
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
7397
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5490
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,...
1
4923
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...
0
4611
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
672
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
316
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.