473,221 Members | 1,845 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,221 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 5867
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: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.