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

How to correctly link xercesc libraries in C++ compiling?

I am completely new to C++ and am working on a piece of code that will be inserted into a larger program. The piece of code will use the xercesc library to read an XML file. I wrote a very basic main function to test things out. But I cannot get it…
eddieisnutty
  • 155
  • 7
1
vote
1 answer

Cast fails using overloaded = operator in Solaris 11 DeveloperStudio12.6

Piece of code compiles fine in Solaris 10 but fails in Solaris 11 DeveloperStudio 12.6. Error: Cannot cast from DOM_Node to const DOM_XMLDecl&. Code : xml->root_node = (const DOM_XMLDecl&)(xml->doc.getFirstChild()); If I change the code to (stupid…
1
vote
0 answers

Is there a text reader class that can be link on xerces during parsing?

Original Title: How to derived a class from base class DOMDocument of XercesC? From what I understand is that during parsing, below function will be called. DOMProcessingInstruction* DOMDocument::createProcessingInstruction (XMLCh* target, XMLCh*…
steiryx
  • 71
  • 10
1
vote
0 answers

Error: no matching function for call to ‘xercesc_3_2::DOMImplementation::createDocument(int, const wchar_t [19], int)’

I am not so experienced with c++ and xerces lib, so I want to ask how can I resolve this problem. I installed the xerces lib following the instructions here. #include #include #include //Mandatory for using any feature…
akrilmokus
  • 169
  • 9
1
vote
1 answer

Xerces-c assertion error

I have downloaded and built Xerces-c on linux: Linux xxxx 2.6.24.7-server-3mnb #1 SMP Wed Sep 9 16:34:18 EDT 2009 x86_64 Intel(R) Xeon(R) CPU 3065 @ 2.33GHz GNU/Linux Created the simple program: #include…
user740521
  • 1,175
  • 4
  • 12
  • 25
1
vote
0 answers

Xerces-C increasing memory usage

I'm currently struggling with rising memory usage in Xerces-C. I was able to simplify the code to this point: xercesc_3_2::XMLPlatformUtils::Initialize(); xercesc_3_2::DOMImplementation* impl =…
ParkerHalo
  • 4,341
  • 9
  • 29
  • 51
1
vote
1 answer

Why duplicate element is being appended in XML?

I am creating in memory XML using Xerces APIs. I am able to append duplicate elements (same element tag name and attributes) to a element node. Please suggest me, how can I avoid appending a XML element if same is present already as child of a…
user11264133
1
vote
2 answers

DOMDocument C++ memory management

Question about DOM* class createXXX methods in C++. Do I have to do anything special to free memory returned from DOM* createXXX methods? For example (the transcodes were removed for simplification and the associated releases for the vars…
Matt A
  • 45
  • 4
1
vote
0 answers

Xerces C++ way to write back a updated xml to string

I am trying to parse a XMl file located in a string and update some attributes in the xml. I am using xerces c++ parser for the same and using MemBufInputSource and parse for the same. cout << "Got the string object" << endl; cout << "The…
Rndp13
  • 1,094
  • 1
  • 21
  • 35
1
vote
1 answer

C++ sax2 parser problem

I want to parse an XML file. My XML looks like this: tracker
user513164
  • 1,788
  • 3
  • 20
  • 26
1
vote
0 answers

How to enable cta-full-xpath-checking feature in xerces c?

I'm using xerces c++ 3.2.0 to validate XML against XSD 1.1 According to its docs, xerces uses a subset of XPath 2.0 instead of full XPath checking, so I need to "enable a certain xerces feature" This…
Bizhan
  • 16,157
  • 9
  • 63
  • 101
1
vote
1 answer

Xerces-C validate xml with hardcoded xsd

I'm writing a library which takes xml files and parses them. To prevent users from feeding inalid xmls into my application i'm using xerces to validate the xml files via an xsd. However, i only manages to validate against xsd-files. Theoretically an…
Detonar
  • 1,409
  • 6
  • 18
1
vote
0 answers

Xerces 3.2.0 XCode project is not dropping it's libicuuc.dylib and libcurl.dylib dependency

I try to build a newer version of the xerces library (3.2.0) on Mac OS using CMake to generate a xcode project. Before running CMake, I use configure to set some options and switch off some optional packages using the following command: "./configure…
1
vote
1 answer

Attaching a Xerces-C DOMElement from a Xerces-C DOMDocument to another one

I questioned before about a similar problem in RapidXml, I want to know, now, the same but using Xerces-C. I am working on a c++ application that needs to parse xml. Consider the following: xml file: file1.xml value1
Andry
  • 16,172
  • 27
  • 138
  • 246
1
vote
1 answer

Printing an XML Document in Xerces-C

My problem is simple. I have a XercesDOMParser, so I can access through getDocument() to the DOMDocument stored in it. I want to get the xml string representing the tree. What is the correct call? I assume a valid operator/function is provided by…
Andry
  • 16,172
  • 27
  • 138
  • 246