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

XML library for C++

Hi folks.

Are there any portable XML libraries for C++ out there?
I know about the Qt library, but it seems to be 'non-validating'.
If I understand things correctly this means that it can't be used
with XML schema.

Is this correct? If so, are there any workarounds to use a
'non-validating' XML parser with XML schema?

Rune
Aug 18 '08 #1
4 1812
al****@tele.ntnu.no wrote:
Hi folks.

Are there any portable XML libraries for C++ out there?
I know about the Qt library, but it seems to be 'non-validating'.
If I understand things correctly this means that it can't be used
with XML schema.

Is this correct? If so, are there any workarounds to use a
'non-validating' XML parser with XML schema?
If I understand what you are asking no, you are not correct. A
non-validating parser will simply parse the XML and ignore the schema.

--
Ian Collins.
Aug 18 '08 #2
Sam
al****@tele.ntnu.no writes:
Hi folks.

Are there any portable XML libraries for C++ out there?
I know about the Qt library, but it seems to be 'non-validating'.
If I understand things correctly this means that it can't be used
with XML schema.
The Gnome XML library, although C based, should work fine. I believe it does
support DTD validation, although I never used it.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAkipVzwACgkQx9p3GYHlUOJGSwCdG6JZzATfWB dGyiVOgbVf5SZs
kNsAniphA7IJkkf86QSTkQ+gz6ccGod1
=5mEr
-----END PGP SIGNATURE-----

Aug 18 '08 #3
On Aug 18, 6:01*am, all...@tele.ntnu.no wrote:
Hi folks.

Are there any portable XML libraries for C++ out there?
I know about the Qt library, but it seems to be 'non-validating'.
If I understand things correctly this means that it can't be used
with XML schema.

Is this correct? If so, are there any workarounds to use a
'non-validating' XML parser with XML schema?

Rune
The Xerces XML library should work for you:
http://xerces.apache.org/xerces-c/

--
http://www.EventHelix.com/EventStudio
Sequence diagram based systems engineering tool
Aug 19 '08 #4
On Aug 18, 6:01*am, all...@tele.ntnu.no wrote:
Hi folks.

Are there any portable XML libraries for C++ out there?
I know about the Qt library, but it seems to be 'non-validating'.
If I understand things correctly this means that it can't be used
with XML schema.

Is this correct? If so, are there any workarounds to use a
'non-validating' XML parser with XML schema?

Rune
Try XML C++ data binding tools. These make XML handling easier by
mapping XML schema (XSD) to class instances, i.e. an XML node
definition is a class and the XML node's children are class members
(roughly speaking). Validation is automatic and corresponds to strong
typing in XML/C++.

See e.g.

http://en.wikipedia.org/wiki/XML_data_binding#C.2B.2B

You might want to try gSOAP, CodeSynthesis XSD, and xmlbeansxx.

- Robert
Aug 21 '08 #5

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

Similar topics

2
by: pieter.breed | last post by:
Hi All, The company I work for has traditionally used COM/ActiveX for the solutions that it provides. We are in the process of moving to .NET and a few applications have been written in VB.NET...
3
by: K.S.Liang | last post by:
Hi all, 1> If there are more than one dynamic linking libraries in the file system, how do I know which one is loaded into system? Any C library or system call can tell me which *.so or *.sl is...
1
by: Jim | last post by:
Have fully operational software package developed on VB.NET that worked until Jan 1 2003, with early stage deployments on Oct 10, Oct 23, Nov 11, Dec 12 and Dec 30. When attempted final...
10
by: mwt | last post by:
So in a further attempt to learn some Python, I've taken the little Library program (http://groups.google.com/group/comp.lang.python/browse_thread/thread/f6a9ccf1bc136f84) I wrote and added...
10
by: Julian | last post by:
I get the following error when i try to link a fortran library to a c++ code in .NET 2005. LINK : fatal error LNK1104: cannot open file 'libc.lib' the code was working fine when built using...
20
by: Frank-O | last post by:
Hi , Recently I have been commited to the task of "translating" some complex statistical algorithms from Matlab to C++. The goal is to be three times as fast as matlab ( the latest) . I've...
6
by: =?Utf-8?B?WW9naSBXYXRjaGVy?= | last post by:
Hello, I am using Visual Studio-2003. I created a project to build my library. Since I am using third party libraries as well, I have specified those additional library dependencies in project...
0
by: JosAH | last post by:
Greetings, the last two article parts described the design and implementation of the text Processor which spoonfeeds paragraphs of text to the LibraryBuilder. The latter object organizes, cleans...
0
by: JosAH | last post by:
Greetings, welcome back; above we discussed the peripherals of the Library class: loading and saving such an instantiation of it, the BookMark interface and then some. This part of the article...
16
by: Xiaoxiao | last post by:
Hi, I got a C library, is there a way to view the public function names in this library so that I can use in my C program? Thanks.
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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,...

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.