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

Xerces: Get the raw XML for a particular DOMElement

I am using Xerces-C DOMLSParser to parse an XML Input source, and get a DOMDocument tree. I am navigating to a particular DOMElement. I wish to get the original raw XML markup for that element and its sub-elements. For an XML such as the…
SkypeMeSM
  • 3,197
  • 8
  • 43
  • 61
1
vote
2 answers

Integrate schema metatdata during XML Parsing with Xerces C++

I want to parse an XML file and look up the datatype of attributes and entities in an XML schema file (.xsd) when I traverse the DOM. I found out that I can use the post schema validation infoset (PSVI) to get that information. For this I should be…
Antigo
  • 323
  • 3
  • 11
1
vote
1 answer

xerces - Dealing with namespaces in the tag name

I have an XML based of an XSD that looks something like: abc def I'm in C++ and I can successfully read the XML and parse it. But I want to…
MiketheCalamity
  • 1,229
  • 1
  • 15
  • 32
1
vote
1 answer

add preprocessor define to cmake external project

I would like to build xerces-c as a static library on windows using a cmake ExternalProject. However, for this to work I'd need add the XERCES_STATIC_LIBRARY preprocessor definition to the project. On linux, it seems like I can do it easily enough…
Nicolas Holthaus
  • 7,763
  • 4
  • 42
  • 97
1
vote
1 answer

Xercesc - NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces

I'm using Xercesc-3-1, and I'm trying to resolve an XPath. The code looks like: auto result = documents[ref.refDoc]->evaluate(XMLString::transcode(ref.oldXPath.c_str()), documents[ref.refDoc], …
ratnim
  • 129
  • 7
1
vote
1 answer

Is it unsafe or at least bad form to call DOMImplementationRegistry::getDOMImplementation() more than once?

Just wondering if this is safe. The current documentation does not mention having to release() this pointer or that calling it more than once is an error. My own interpretation is that since these things can be obtained as as a list they are…
Kelly Beard
  • 684
  • 1
  • 8
  • 20
1
vote
3 answers

How to add a new library using Yocto

I am using Yocto and I just would like to integrate a new library in my project. I create a new recipe name "libxerces" which contains a file "libxerces-3.1.1.bb". The bb file is quite simple because it is based on autotools : DESCRIPTION =…
ogs
  • 1,139
  • 8
  • 19
  • 42
1
vote
2 answers

Xerces C++: how do I read data from a stream as it arrives?

I need to read data from my own stream and parse it using Xerces/C++ (SAX or SAX2) as it arrives. I've seen Xerces Java FAQ on this, but Java and C++ APIs don't really seem to match; at least, I can't see a DefaultReaderFactory class in C++ API. So,…
1
vote
0 answers

how to include xerces parser in html

i'm new to this area of programming. when i click a button on the html page i need to invoke xerces parser so a to get the details of the various elements in the associated xml file. i've written the parser program in C. my questions are: 1) Will I…
reji
  • 5
  • 2
1
vote
3 answers

work around for validating XML child elements

Basically my question is whether or not there is way to validate a non-root element according to a given XSD schema. I am currently working on some legacy code where we have some C++ classes that generate XML elements in string format. I was…
user1192525
  • 657
  • 4
  • 20
1
vote
1 answer

How to set message property without using JMS to create XML file

Hi I am new to Websphere MQ C++, I need to know how to set message property without using JMS msg.setStringPropery(" ", " "). I am using Xerces XML Parser btw. Please help me to solve this. Thanks! :)
watangka
  • 101
  • 1
  • 2
  • 10
1
vote
0 answers

Html Parsing using Xerces c++

I'm trying to parse a local html page using Xerces in c++ but I don't know how to parse special characters like "©", when parser came across with one of that characters the entire TextNode is not parsed .Does anyone know how to parse that…
1
vote
2 answers

xml file validation with in-memory schema in xerces c++

#include #include #include #include #include #include…
user3248822
  • 249
  • 1
  • 3
  • 8
1
vote
1 answer

Xerces Link error with Visual Studio 2008

I'm trying to write a code using Xerces, the build worked fine, but when it comes to the link, it fails with the following error: I'm using Visual Studio 2008 Win32 / with xerces 3 (xerces-c_3.lib) / using Multi-threaded DLL (/MD) and i check that…
alexbuisson
  • 7,699
  • 3
  • 31
  • 44
1
vote
0 answers

Creating copy constructor for class with a pointer member on the heap

Short version: Can I safely create a copy constructor for a class that has member pointer variables, one of which is on the heap, that are of type xercesc::XercesDOMParser* and xercesc::DOMDocument*? If so, how? Long version: I wrote a class to…
John Fitzpatrick
  • 4,207
  • 7
  • 48
  • 71