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

Need a XML parser in C/C++

Hi,

I'm looking for a XML parser which is able to convert a C++ structure directly into a XML document in HP-UX environment, are they any around?

Xerces-C++ or CodeSynthesis XSD able to do it?

Thanks
Nov 27 '07 #1
7 5881
Meetee
931 Expert Mod 512MB
Hi,

I'm looking for a XML parser which is able to convert a C++ structure directly into a XML document in HP-UX environment, are they any around?

Xerces-C++ or CodeSynthesis XSD able to do it?

Thanks
I don't about those you have mentioned but I know about TinyXML which do this job very well. Here are some links for that.

http://www.grinninglizard.com/tinyxml/
http://sourceforge.net/projects/tinyxml/

Regards
Nov 27 '07 #2
Hi,

I'm looking for a XML parser which is able to convert a C++ structure directly into a XML document in HP-UX environment, are they any around?

Xerces-C++ or CodeSynthesis XSD able to do it?

Thanks
Hi

try this code for
use this link

http://gdome2.cs.unibo.it/examples.html

or

xmlsoft.org/tutorial/xmltutorial.pdf

Full code removed per Posting Guidelines
Nov 27 '07 #3
xoinki
110 100+
hi,
TinyXmlParser for me..
Its fast and very less leaky..

Regards,
Xoinki
Nov 27 '07 #4
TinyXML looks cool.

So it has to be use with TinyBind to convert struct to XML?

What about the licence? Able to be used in commercial projects?

Thanks
Nov 28 '07 #5
Meetee
931 Expert Mod 512MB
TinyXML looks cool.

So it has to be use with TinyBind to convert struct to XML?

What about the licence? Able to be used in commercial projects?

Thanks
There is no licence to use tinyxml. You will be able to use the library for free.

There are examples given in above mentioned sites for how to use it's functions. suppose the structure contains name, address and age, then you can convert them into xml structure and vice versa. I have not much idea about TinyBind.

Regards
Nov 28 '07 #6
oler1s
671 Expert 512MB
There is no licence to use tinyxml. You will be able to use the library for free.
Really? You're saying it's public domain. You determined this how?

It's actually release under the zlib license. You can determine this by a) reading the sourceforge page b) reading the docs c) downloading the source and reading the LICENSE file and d) outright googling "tinyxml license". I sincerely hope you haven't used TinyXML in your projects, in ways that do not conform to the license.
Nov 28 '07 #7
hello,
I am also struggling with the same problem converting c structs to XML files . Could you please breif out what you did. Help to save my time instead gooling for 2-3 three days.
Thanks in advance.
Jan 4 '08 #8

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

Similar topics

0
by: marktm | last post by:
Hi- I am using the following code and want to retrieve an attributes value. I want to loop through the xml file and add the attribute values to an array. The line in question is marked with...
2
by: marktm | last post by:
Hi- I am using the following code and want to retrieve an attributes value. I want to loop through the xml file and add the attribute values to an array. The line in question is marked with...
1
by: Karalius, Joseph | last post by:
Can anyone explain what is happening here? I haven't found any useful info on Google yet. Thanks in advance. mmagnet:/home/jkaralius/src/zopeplone/Python-2.3.5 # make gcc -pthread -c...
3
by: Himanshu Garg | last post by:
Hello, I am trying to pinpoint an apparent bug in HTML::Parser. The encoding of the text seems to change incorrectly if the locale isn't set properly. However Parser.pm in the directory...
1
by: Srinivasa Parupalli | last post by:
Dear Friends, I am struck up with logic. I am using one class(BMSLexer) which takes filename as arugument and the instance of the class is used my another class. example is shown below. Now my...
27
by: comp.lang.tcl | last post by:
My TCL proc, XML_GET_ALL_ELEMENT_ATTRS, is supposed to convert an XML file into a TCL list as follows: attr1 {val1} attr2 {val2} ... attrN {valN} This is the TCL code that does this: set...
4
by: ChillyRoll | last post by:
Hello guys, I am looking for a parser in PHP that can return all the attributes of XML entities. I know how to read the XML Entities, but I have got a problem with reading attributes. So I will...
2
by: Anders B | last post by:
I want to make a program that reads the content of a LUA array save file.. More precicely a save file from a World of Warcraft plugin called CharacterProfiler, which dumps alot of information about...
2
by: vijaykk | last post by:
Hi @, I new to java and i am facing
1
by: hellt | last post by:
today i've decided to use optionparser instead of GetOpt and unfortunately i've got an error which i cant handle my pice of code: from optparse import OptionParser def main(): usage =...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...
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.