473,915 Members | 3,834 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need a XML parser in C/C++

2 New Member
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 5905
Meetee
931 Recognized Expert Moderator Contributor
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
jinendrashankar
10 New Member
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 New Member
hi,
TinyXmlParser for me..
Its fast and very less leaky..

Regards,
Xoinki
Nov 27 '07 #4
oneterence
2 New Member
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 Recognized Expert Moderator Contributor
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 Recognized Expert Contributor
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
gnanapoongothai
62 New Member
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
1592
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 "<---??????" below. I have included both the PHP and XML. Your help will be much appreciated.
2
2609
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 "<---??????" below. I have included both the PHP and XML. Your help will be much appreciated.
1
5299
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 -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -DPy_BUILD_CORE -o Modules/python.o Modules/python.c gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -DPy_BUILD_CORE -o...
3
3131
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 (/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/HTML/) doesn't seem to contain the "real" parsing statements.
1
1299
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 requirement is parser should have a functionality in such a way that parser class should parse the file with the existing lexer funtionality and lexer class should have constructor with no arguments. Nxet when i call from Test calls by instancing...
27
5169
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 contents ]; close $fileID
4
3225
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 appreciate if you could give a parser that can return all the Entities and Attributes of respective entities as an array. For e.g.: <?xml version="1.0" ?>
2
1819
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 your characters into that save file. Anyhow, I want to extract a couple of lines of it and save it into a database and I need help on figuring out a good way of reading the file. The problem is that the file can look pretty different depending...
2
1511
by: vijaykk | last post by:
Hi @, I new to java and i am facing
1
2537
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 = "usage: %prog "
0
10039
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9883
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
11069
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10543
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9734
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7259
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4779
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4346
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3370
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.