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
2 answers

Adding a stylesheet declaration in my xml using Xerces-C

I have an application in c++ using Xerces-C as main xml manipulation library. I have my DOMDocument* and my parser and I want to set declarations. I do the…
Andry
  • 16,172
  • 27
  • 138
  • 246
2
votes
1 answer

DOM elements memory allocation management on Xerces-C

It has been two days for me to struggle on xml parsing problems and it still hasn't finished yet :) Well, After many trils I finally decided to use Xerces-C to parse xml in my c++ application. Well... I tried TinyXml, RapidXml and others.... Xerces…
Andry
  • 16,172
  • 27
  • 138
  • 246
2
votes
0 answers

How to use Xerces to parse XML in a string

I have a C++ project in Visual Studio and I added the Xerces nuget package to it. I am trying to use this library to parse a string of XML that I have retrieved from a SOAP call (SOAP call removed in the simplified example below). #include…
Benjamin Cuningham
  • 856
  • 1
  • 13
  • 28
2
votes
1 answer

xerces-c: DOM xml parsing

I have a question about XML parsing. I was experimenting with a sample program and changed it up a bit to try to understand how parsing works however, I've encountered an output I dont quite understand and hope that some of you can shed some light…
user459811
  • 2,874
  • 10
  • 37
  • 63
2
votes
0 answers

C++ xerces program compile error with go build

I try to embed a little c++ xerces program in my go application in order to validate xml against xsd. The program compiles and runs fine when I use g++ with the following command: g++ test-xerces.cpp -o xercesTest -v…
GwydionFR
  • 787
  • 1
  • 10
  • 25
2
votes
1 answer

How to disable External Entity Resolution in xerces C++ DOMLSParser

We are using Xerces C++ DOMLSParser. I want to disable External Entities but could not find anything for DOMLSParser. How to disable Loading External Entities to prevent XXE attacks?
Chandu
  • 1,837
  • 7
  • 30
  • 51
2
votes
1 answer

Xerces C++ XML: escape is really hard to do?

I am using Xerces library, everything is fine to use but now I want to escape the XML string and I found there is a XMLFormatter class used for that, after I dig into the doc, I see it is really hard to use from the constructor perspective. What I…
Bin Chen
  • 61,507
  • 53
  • 142
  • 183
2
votes
1 answer

xerces_3_1 is able to create invalid xml at comments & processing instructions

I've encountered a problem using the xerces-dom library: When you're adding a comments to the xml-tree like: DOMDocument* doc = impl->createDocument(0, L"root", 0); DOMElement* root = doc->getDocumentElement(); DOMComment* com1 =…
ParkerHalo
  • 4,341
  • 9
  • 29
  • 51
2
votes
1 answer

xerces_3_1 adoptNode() method returns NULL

i'm currently working with xerces 3.1 in visual studio 2010. I've written this (very simple) piece of code: XMLPlatformUtils::Initialize(); DOMImplementation* impl = DOMImplementationRegistry::getDOMImplementation(L"XML 1.0"); DOMDocument* doc1 =…
ParkerHalo
  • 4,341
  • 9
  • 29
  • 51
2
votes
1 answer

Get default value for element from schema using xerces (C++)

Say I have a schema which defines an element as follows:
Praetorian
  • 106,671
  • 19
  • 240
  • 328
2
votes
4 answers

linking/version problem with libxerces-c

I am trying to make an example of a toolkit work, but after typing make, I got the following error: g++ -o taskintro taskintro.o `PKG_CONFIG_PATH=/usr/local/lib/pkgconfig pkg-config orocos-ocl-gnulinux orocos-rtt-gnulinux --libs` /usr/bin/ld:…
evrimt
  • 21
  • 1
  • 3
2
votes
0 answers

Streaming xml modification to zip

I am working with potentially "large" xml files where my application only cares about a very small subset of the data contained in the file. So I was hoping to avoid loading the entire xml document into DOM. I have been successfully using Apache…
Nathan
  • 10,593
  • 10
  • 63
  • 87
2
votes
1 answer

Building xerces using -icu

is any body aware of building xerces using icu library , when i am building it giving all icu related option on MacOS its never going for icu option ( it finally says ICU option can not be enabled in config.log ). ./configure --prefix=/tmp/xer…
brijesh
  • 120
  • 1
  • 7
2
votes
1 answer

Xerces-c and cross-platform string literals

I'm porting a code-base that uses Xerces-c for XML processing from Windows/VC++ to Linux/G++. On Windows, Xerces-c uses wchar_t as the character type XmlCh. This has allowed people to use std::wstring and string literals of L"" syntax. On…
Tom
  • 7,269
  • 1
  • 42
  • 69
2
votes
1 answer

'error C2733: second C linkage of overloaded function'

I'm trying to build xercesc 3.1 on 64bit Windows 7 using Visual Studio 2005. I downloaded the source from the official site and followed the instructions given there (basically, just 'open the .sln and build project XercesLib), but I get the…
jam
  • 3,640
  • 5
  • 34
  • 50
1 2
3
14 15