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

C/C++ parsing using libxml

Hi all,
I want to write a simple C/C++ (preferably c++) code to take an xml file as input and parse it, thats all!
I want to do it using libxml2, i already installed it on my devcpp so thats no prob.

Also if anyone knows a place where i can learn stuff about the libxml library, that would be great.

So if someone has an idea or code or anything to help; please post back or just mail me: ::Email removed per Posting Guidelines:: :)

thank you

....and by the way, whenever i use anything from the library it gives me this error:

[Linker error] undefined reference to `xmlParseFile'

whats that all about?
Jul 24 '08 #1
2 2828
Laharl
849 Expert 512MB
Did you #include the appropriate library files? Also, you might want to try Google for help with that XML library...
Jul 24 '08 #2
gpraghuram
1,275 Expert 1GB
If you have downloaded the libxml source , then check for examples in it.
Its better to start from there

Raghu
Jul 25 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Ian Gregory | last post by:
Hi, One of our servers has recently been upgraded and as a result both libxml and XML::LibXML have been upgraded. The OS is OpenBSD 3.3. libxml has gone from version 2.4.18 to 2.5.7p1 and...
3
by: Olav | last post by:
I need to do some cross-platform XML in C++. Previously I have used Xerces, but some Googeling indicated that many people prefer libxml. Also it is UTF-8, which is easier for us (Xerces is...
3
by: uestebanez | last post by:
Hi everybody! I have a little problem working with libxml SAX API. The problem is that I don't know how to stop parsing when I have processed the data I need. I don't want to parse all file, I...
3
by: John Doe | last post by:
I've been doing some reading/research on parsing simple configuration files through C, and have heard various opinions on the matter. I'd like to solicit some opinions and design criteria (as well...
5
by: jwang | last post by:
I'm currently writing some C code that uses libxml. I've seen several example of parsing xml when the xml are in files. However, I would like to parse the xml from a char buffer. Currently I am ...
5
by: Pat Ford | last post by:
Hi All; I'm working on a data acquisition system, the system runs on Linux, and the config files are Xml like. eg <CHANNELS> <META> Short Label,textbox,width=5,Alpha,required Long...
5
by: minboymike | last post by:
Hello Everyone, I was wondering if anyone knows of a simple(r) way to parse an xml document. The current way I have been parsing an xml doc in my code has been reading the entire xml document...
9
by: Thomas Lecomte | last post by:
Hello, I'm working on a project and I need to parse an XML file containing the description of a lot of images. Here's an example of the XML data: <db_name> <picture> <pic_id>2033</pid_id>...
1
by: mohsaied | last post by:
Hi all, I want to write a simple C/C++ (preferably c++) code to take an xml file as input and parse it, thats all! I want to do it using libxml2, i already installed it on my devcpp so thats no...
6
by: whiteideal | last post by:
hay, guys, i just want to create a svg file according to my data, but i don't know whether there is some opensouce lib to do such things. Can you tell me about it? Thanks.
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
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: 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
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...

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.