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
2
votes
1 answer

XercesC setting output to UTF-8

I'm using XercesC Lib to create a serialization of my data. How can I set it to UTF-8? It is always generated with UTF-16 and I can't find a way to change that. xercesc::DOMImplementation *gRegistry =…
Devolus
  • 21,661
  • 13
  • 66
  • 113
2
votes
3 answers

xerces-c 2.8 : error while loading shared libraries

I'm trying to compile a program running on an HP UX server on a Red Hat Linux. It uses xerces-c library to parse xml files. Compilation is ok, but when i try to run it, I get the following message ./a.out: error while loading shared libraries:…
Tom
  • 43,810
  • 29
  • 138
  • 169
2
votes
1 answer

Mac OSX Compatibility version of Xerces-C dylib (10.5-10.8)

Is it possible to build a version of xerces-c-3.1.dylib that will work with multiple versions of OSX? Ideally, 10.4+, but 10.5+, or even 10.6+ would be OK. How? I am working with an external (command-line) program (ie not one I control) that…
Bryan P
  • 5,900
  • 5
  • 34
  • 49
2
votes
1 answer

Linking a DLL using xerces gives undefined symbols

I'm creating a shared library/DLL using cygwin which makes use of Xerces. When I call the xercesc functions from the main application everything is fine, but when I try to put some code into the library, then I get undefined symbols for all the…
Devolus
  • 21,661
  • 13
  • 66
  • 113
2
votes
1 answer

Generate XML using Xerces-C++

I am attempting to generate XML similar to the below using the xerces libraries. I cannot find a suitable example to follow; can anyone with experience in this area please advise?
godzilla
  • 3,005
  • 7
  • 44
  • 60
2
votes
2 answers

Fastest way to count/ access DOMNode children using Xerces C++

I'm trying to figure out the fastest way to count the number of child elements of a Xerces C++ DOMNode object, as I'm trying to optimise the performance of a Windows application which uses the Xerces 2.6 DOMParser. It seems most of the time is spent…
ericc
  • 334
  • 1
  • 14
2
votes
1 answer

How do I statically link against two versions of xerces-c (or any library for that matter)?

I know this is not a very clean thing to do but how do I do it nonetheless? Basically, I am statically linking a third party library that uses xerces-c 2.7 and I want to use xerces-c 3.1 (for some of the newer latest and greatest features not…
owagh
  • 3,428
  • 2
  • 31
  • 53
2
votes
2 answers

undefined reference to xercesc_2_8 when compiling sample ocde

I'm trying to compile the following sample code available at XERCES site: #include // Other include files, declarations, and non-Xerces-C++ initializations. XERCES_CPP_NAMESPACE_USE int main(int argc, char*…
cvicente
  • 132
  • 3
  • 12
1
vote
2 answers

the use of XMLString::release( XMLCh ** buf)

I'm using xerces-c++ I don't seem to really get the use of XMLString::release ( XMLCh ** buf) so right now I'm using it every time I want to reuse a local variable like this: XMLCh* xmlStringVar = XMLString::Transcode("name"); XMLCh* fieldName =…
Joy
  • 1,707
  • 7
  • 29
  • 44
1
vote
1 answer

What's the most efficient way to parse incomplete XML messages over a stream?

I have a TCP connection that sends me XML messages over a stream. The first message I receive in the message. The second is a authentication request message, which provides a seed to use when hashing my…
Sean Chapman
  • 322
  • 1
  • 10
1
vote
1 answer

Migration from xerces v1 to xerces v3.1.1

I have to migrate my project from xerces 1 to xerces 3.1.1 but I can't find DOMString.hpp. Does someone have an idea where I can find this class?
nidhal
  • 1,609
  • 4
  • 16
  • 15
1
vote
0 answers

libxercesc can not catch exception only on Solaris

ffffffff7e54c2f0 __lwp_sigqueue (6, 6, 5, 0, 6, 5) + 8 ffffffff7e4cab0c abort (ffffffff79415998, 0, 6, ffffffff7bf002d8, 1bb5b4, c00) + c4 ffffffff7930ab8c _1cH__CimplRdefault_terminate6F_v (ffffffff79415998, ffffffff7e68cfc0, 28a0,…
김도형
  • 41
  • 2
1
vote
0 answers

xercesc::DOMLSParserImpl::doctypeDecl receives wrong input from xercesc for internal and external entity

Actually, it receives parameters for internal and external entity switched. Method signature: virtual void doctypeDecl (const xercesc::DTDElementDecl& root, const XMLCh* const public_id, const XMLCh* const …
neutrino
  • 11
  • 3
1
vote
1 answer

XmlSpy: memory leaks in auto-generated xml parser

I generated a C++ xml parser using Altovas XmlSpy 2011R3 SP1. The parser is based on Xerces 3.1 and used as a dynamic link library with MFC support. I'm getting memory leaks inside xerces just running the example generated with the altova parser…
nabulke
  • 11,025
  • 13
  • 65
  • 114
1
vote
1 answer

How to remove a child node from an XML file in C++ using Xerces-C?

root = doc->getDocumentElement(); child=root->getLastChild(); DOMNode* removedElement = root->removeChild(child); removedElement->release(); The child is getting newline character as a node if the XML file is like this: …
Dinesh Reddy
  • 775
  • 1
  • 11
  • 25