Questions tagged [xerces-c]

A processor for parsing, validating, serializing and manipulating XML, written in C++

Xerces-C++ is a validating XML parser written in a portable subset of C++. Xerces-C++ makes it easy to give your application the ability to read and write XML data. A shared library is provided for parsing, generating, manipulating, and validating XML documents using the DOM, SAX, and SAX2 APIs. The parser provides high performance, modularity, and scalability.

See also .

221 questions
19
votes
2 answers

Purpose of XMLString::transcode

I don't seem to understand the purpose of XMLString::transcode(XMLCh*) and XMLString::transcode(char*) , because obviously I don't understand the difference between XMLCh* and char*. Can someone please make things clearer for me ?
Joy
  • 1,707
  • 7
  • 29
  • 44
19
votes
4 answers

Making Xerces parse a string instead of a file

I know how to create a complete dom from an xml file just using XercesDOMParser: xercesc::XercesDOMParser parser = new xercesc::XercesDOMParser(); parser->parse(path_to_my_file); parser->getDocument(); // From here on I can access all nodes and do…
Andry
  • 16,172
  • 27
  • 138
  • 246
13
votes
2 answers

Read Write XML File In C++

I researched a lot on how to read and write ( update ) a simple .xml file in C++ but i am not able to develop the code for it. I work and installed xerces-c library that I think is needed to use DOM or SAX2 parser to read it. Please someone can help…
Adarsh Sharma
  • 147
  • 1
  • 1
  • 4
12
votes
3 answers

XPath support in Xerces-C

I am supporting a legacy C++ application which uses Xerces-C for XML parsing. I've been spoiled by .Net and am used to using XPath to select nodes from a DOM tree. Is there any way to get access some limited XPath functionality in Xerces-C? I'm…
Adam Tegen
  • 25,378
  • 33
  • 125
  • 153
8
votes
1 answer

Xerces-C++ memory

I'm having trouble understanding Xerces-C++ memory management. If I have this (example) XML file "config.xml": Ref1
Blair Fonville
  • 908
  • 1
  • 11
  • 23
8
votes
1 answer

Xerces-C: Migration from v2.x to v3.x?

I would like to migrate a project (legacy code which I am not quite familiar with) from Xerces-C v2.x to v3.x. It turns out that Xerces-C v3 dropped the DOMBuilder class. The migration archive tells me this: ...a number of DOM interfaces…
DevSolar
  • 67,862
  • 21
  • 134
  • 209
5
votes
1 answer

What is the difference between DOCUMENT_NODE, DOCUMENT_TYPE_NODE and DOCUMENT_FRAGMENT_NODE?

Can any one explain to me what is the difference between: DOCUMENT_NODE DOCUMENT_TYPE_NODE DOCUMENT_FRAGMENT_NODE in Xerces-C.
Dinesh Reddy
  • 775
  • 1
  • 11
  • 25
5
votes
0 answers

Crash in xerces while validating XML

My application is crashing sometimes when I am trying to validate XML using Xerces-c. Here is the stack trace : #0 0x000000000064ead0 in xercesc_3_2::XMLMutex::lock() () #1 0x000000000064eb32 in…
Bhawan
  • 2,441
  • 3
  • 22
  • 47
4
votes
3 answers

sample XSD fails with "error: no declaration found for element X"

In spite of being a total newbie in the xml parsing arena, I was able to xsd to create valid c++ and compile and link successfully, but the compiler optimized(?) away the instantiation. So, starting at step one, I try the hello world xml example at…
wallyk
  • 56,922
  • 16
  • 83
  • 148
4
votes
0 answers

How to Configure Xerces-C++ to process XIncludes prior to XML Schema Validation

Consider an XML file, config.xml:
John
  • 1,037
  • 11
  • 19
4
votes
1 answer

Linking xerces static library for Mac OS X

I'm trying to link xerces as a static library, but I have some problems... Undefined symbols for architecture x86_64: "_CFRelease", referenced from: xercesc_3_1::MacOSUnicodeConverter::upperCase(unsigned short*) in…
4
votes
1 answer

How do I use assertions in with Xerces C++ 3.x (CodeSynthesis XSD)?

I have just read through this tutorial on XSD 1.1 assertions: http://www.ibm.com/developerworks/library/x-xml11pt2/ I copied one of their examples and created this xsd file:
quant
  • 21,507
  • 32
  • 115
  • 211
4
votes
1 answer

Using Xerces-C++ to perform an HTTP Request

I’ve been googling but can’t seem to find information on this… I think it’s possible because I remember seeing something about this. I’m already using xercesc to parse a XML document (using SAX2). I wanted to replace libcurl with xerces for the HTTP…
4
votes
2 answers

set up Xerces on ubuntu 12.04 to use with cmake and clang

I want to use Xerces in my project, which I compile with the help of cmake and clang. What I did is: download source extract it to a folder called 'xerces-c-3.1.1' cd into that folder ./configure make make install Then I wrote…
Rico-E
  • 1,806
  • 2
  • 28
  • 47
3
votes
3 answers

Xerces-C problems; segfault on call to object destructor

I've been playing around with the Xerces-C XML library. I have this simple example I'm playing with. I can't seem to get it to run without leaking memory and without segfaulting. It's one or the other. The segfault always occurs when I delete the…
Brian Gianforcaro
  • 26,564
  • 11
  • 58
  • 77
1
2 3
14 15