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

Differences between Xerces-C++ v2 and v3 branches

Checking the Xerces-C++ webpage, I saw there are two major branches of the parser: Version 2.8.0 and Version 3.1.1 What are the main differences between those two? (couldn't find any summary on their page) Which one should I choose for starting a…
Ronald McBean
  • 1,417
  • 2
  • 14
  • 27
3
votes
7 answers

Why is installing PostGIS 3 on RHEL 8 / CentOS 8 impossible?

I am attempting to install the latest PostGIS 3.0.x on CentOS 8, with no luck. I don't think anyone is running PostGIS on RHEL 8 or CentOS 8, I can't understand why not. It does not seem possible to install. I have successfully installed Postgres…
user10664542
  • 1,106
  • 1
  • 23
  • 43
3
votes
1 answer

Failing to use XercesC in a CMAKE project

I'm trying to create a CMAKE project that links to xerces-c on Windows. Xerces-C was built with cmake and installed in a folder. This is the layout of the installation: xercesc/3.2.2 | |-bin | |-xerces-c_3_2.dll | |-xerces-c_3_2D.dll | …
Jepessen
  • 11,744
  • 14
  • 82
  • 149
3
votes
0 answers

Building DRAMpower

So i want to build the DRAMpower to simulate the DRAM power model . I have all the dependecies installed that are required such as gcc and libxerces-c-dev. i then run the following command make -j4 g++ -O -W -pedantic-errors -Wextra -Werror…
Vansh
  • 69
  • 6
3
votes
1 answer

Passing from a DOMNode* to a DOMElement* in Xerces-C

I have a c++ application that manipulates xml. Well, at a certain point of my application I get a DOMNode* and then I attach it to an element as a child. Well the problem is that I would like to add parameters to that node... well it is a node so it…
Andry
  • 16,172
  • 27
  • 138
  • 246
3
votes
1 answer

DOMDocument to string xerces-c

I have a parsed an XML document with xerces-c and can successfully write it to a file like the DOMPrint example, but I can not store this in an array. I see online that I should still use a serializer, but I'm not sure what to change. Obviously,…
Michael
  • 3,222
  • 2
  • 21
  • 22
3
votes
0 answers

Can I ignore XSD schema file while using Xerces Lib in C++?

I am using Xerces 3.1.1 lib in C++, and trying to read an XML file using DOM. I use DOMLSParser for parsing the xml file. Everything works perfectly fine when I provide both the XSD schema file (using loadGrammar()), and XML file (using…
Muhammad Hassan
  • 501
  • 1
  • 4
  • 14
3
votes
0 answers

How do I block unknown attributes using an XSD and Xerces-C++?

I have an XML schema that I'm validating against using Xerces-C++ 3.1.1. My XML documents validate normally. I can cause a validation failure by renaming an element, or a required attribute, so I'm pretty sure Xerces is doing the right thing with…
UltraNurd
  • 1,314
  • 2
  • 14
  • 24
3
votes
1 answer

Exception "node is used in a different document than the one that created it" using C++ xerces library

I have extracted a DomNode from a XML. I then tried to insert it to another DomNode located in a different DOMDocument using appendChild(DOMNode*) but I got a DOMException. The exception: node is used in a different document than the one that…
user1808932
  • 427
  • 1
  • 5
  • 14
3
votes
3 answers

How can I access enumeration ids in XML schema (using xerces-c)?

Supposing I had an XSD that might contain something like this:
robinn
  • 33
  • 1
  • 3
3
votes
1 answer

xerces-c 3.1 XPath evaluation

I could not find much examples of evaluate XPath using xerces-c 3.1. Given the following sample XML input: AAA BBB CCC I need to retrieve the "AAA BBB CCC" string by the XPath "/abc/def/text()[0]". The following code…
John Crane
  • 371
  • 5
  • 14
3
votes
2 answers

How do you build Xalan-C with Visual Studio 2010?

I can not find proof that it's possible. After 40 hours of driving myself to insanity, I'm left with a situation where I cannot build the Localization project that supposedly builds a header file needed by the poorly named AllInOne project (which…
Rhubarb
  • 3,893
  • 6
  • 41
  • 55
2
votes
2 answers

Xercesc XPath functionalities

I have tired DOMDocument::evaluate in xercesc 3.1.1 to select nodes from a DOM tree. It works for some of the xpath expression. But to select nodes by attribute value like "//Project[@index=\"1\"]" is not supported. Can anyone confirm this? Thanks!
SSD
  • 41
  • 4
2
votes
1 answer

Is there a lightweight approach in producing XML with Xerces-C++?

This application runs on an embedded platform with low processing power and memory. I want to produce huge XML from the application. Currently I am constructing DOM and serializing into XML using Xerces-C++ 3.1.1. But the DOM construction takes long…
Sivachandran
  • 787
  • 7
  • 21
2
votes
1 answer

Migrate DOMBuilder setEntityResolver method in xerces 2.7 to xerces 3.x

How can we migrate setEntityResolver(DOMEntityResolver* const handler) method in DOMBuilder of xerces 2.7 to xerces 3.x. Thanks in advance
Mallesh
  • 77
  • 1
  • 12
1
2
3
14 15