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
1
vote
1 answer

When calling XMLPlatformUtils::Initialize() on Xerces?

I'm using Xerces and references are not very clear about when using Initialize and Terminate. Well, many web sites typically tells you: "Always put your Xerces code between these two lines". But do I always have to do that? Or just when…
Andry
  • 16,172
  • 27
  • 138
  • 246
1
vote
1 answer

C++ Xerces-c: Initializing a shared_ptr

I am new to shared pointers and was wondering how to initalize a shared pointer if it is also a member variable? Currently my code looks something like this: In the header file, I have: class Parser { public: Parser(); ~Parser(); …
user459811
  • 2,874
  • 10
  • 37
  • 63
1
vote
0 answers

how to use lockf with xerces-c

I am new to programming and I am trying to use lockf to lock a XML file. I using xerces-c to parse the XML file and I need to lock the file. The function is similar the the example below: void GetConfig::readConfigFile(string& configFile) …
Marcio
  • 11
  • 1
1
vote
1 answer

Xerces-c: XML file validation with xsd file c++

I am attempting to use Xerces-c. I have a .xsd scheme and want to use it to to validate an XML file. I've define the xsd file and an error handler, but for some reason the xsd is not throwing errors. Any insights to what I may be missing? …
user459811
  • 2,874
  • 10
  • 37
  • 63
1
vote
1 answer

Cannot use xercesc with new c+11 flags in Solaris' newest compiler

Using xerces-c-3.1.1 and SolarisStudio12.5Beta-solaris-x86-bin (on Solaris 10). ./configure CXX=CC CC=cc CXXFLAGS="-std=c++11" gmake gmake check results in 37 core dumps and the error messages terminate called after throwing an instance of…
didiz
  • 1,069
  • 13
  • 26
1
vote
2 answers

Statically linked xerces 3.0.0 does not work while dynamic works on Linux

So I am trying to statically link Xerces 3.0.0 on linux. I did it already with dynamic link and it works, but in order to avoid dependancy I want to do it statically. I changed all of the make files to do it in appropriate way -Wl,-Bstatic ...…
grobartn
  • 3,510
  • 11
  • 40
  • 52
1
vote
0 answers

msys2 mingw64 link to xerces-c

I'm running MSYS2 environment for the PC - running mingw64, trying to build 64-bit binaries. I'm trying to link to the xerces-c library (which I have downloaded and installed using pacman). Unfortunately I get unresolved link errors. It seems that…
G. Benko
  • 11
  • 1
1
vote
1 answer

Error handling in validating xerces-c SAX parser

I am trying to use Xerces-C to parse XML with a validating XSD or DTD. Unfortunately, validation errors are not reported. Here's how I am setting it up: saxParser = new…
Wheezil
  • 3,157
  • 1
  • 23
  • 36
1
vote
1 answer

dyld: Library not loaded: libicui18n.54.dylib Referenced from: /usr/local/lib/libxerces-c-3.1.dylib

I'm using an application that links to xerces-c. For some reason this dylib error shows up when I'm running binary. The full message is dyld: Library not loaded: libicui18n.54.dylib Referenced from: /usr/local/lib/libxerces-c-3.1.dylib Reason:…
kc2uno
  • 1,141
  • 2
  • 12
  • 16
1
vote
0 answers

Xerces-C XML XSD union always collapsing whitespace

I understand from the XML Schema specification of whitespace: For all datatypes ·derived· by ·union· whiteSpace does not apply directly; however, the normalization behavior of ·union· types is controlled by the value of whiteSpace on that one of…
Tb.
  • 126
  • 1
  • 5
1
vote
0 answers

How to build Xerces-c library for use with Embarcadero Technologies C++ Builder?

I downloaded the Xerces-c source from the xerces.appache mirror. I want to create a DLL I can use with C++Builder 10.0 Seattle, for both 32-bit and 64-bit. The build instructions and download archive provide a Visual C++ Solution I can use with VS…
Kathleen
  • 108
  • 7
1
vote
1 answer

unresolved external 'xercesc_3_1::XMLPlatformUtils::Initialize' in C++ Builder test app

I am trying to learn how to use the Xerces-c-3.1.4 DLL. I downloaded the source and built the DLL using the xerces-all.sln in VS Studio Express 2015. I have written a very simple VCL app (a button on a form). This yields three linker…
Kathleen
  • 108
  • 7
1
vote
0 answers

What is the difference between DOMString and string?

I'm migrating a (very) old application from solaris to linux. In c++ code, an old version of xerces library was used. So I updated that library to a more recent one. My problem is that before the type "DOMString" from the library was used but it…
Jérôme G
  • 968
  • 2
  • 7
  • 14
1
vote
1 answer

Seg Fault while parsing recursive XML Schema (XSD) with Xerces-C++

I have a C++ app which uses a particular XML config. This config has recursive nodes. For example, SubStrategy can have Strategy node which in turn can have another SubStrategy node.
Manish Baphna
  • 422
  • 2
  • 13
1
vote
1 answer

Extract xmlns in XML created by xerces

I am trying to create a XML using xerces C++. However I am getting xmlns="" after each element node. Can someone please guide me how can this be removed? Please find my implementation below p_DOMImplementation =…
Mayank Jain
  • 2,504
  • 9
  • 33
  • 52