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
0
votes
0 answers

DOMLSSerializer : Cannot print big document

I'm using DOMLSSerialize with a DOMLSOutput to print a DOMDocument to an xml file. I need to print a rather large quantity of xml (between 10-20Mb). I run into a problem when I try to print a document document bigger than ~6Mb. The xml file only…
teldios
  • 45
  • 6
0
votes
1 answer

Reading and Writing unicode string in Xerces

I want to read and write Arabic character from XML file on windows platform. My c++ program uses Xerces for XML files. As Xerces documentation noted, it Support Unicode character. I…
paytam
  • 327
  • 6
  • 15
0
votes
1 answer

XercesDOMParser* and DOMDocument* going out of scope before a DOMElement*

Short Version: Is it safe for a XercesDOMParser* and DOMDocument* to go out of scope before a DOMElement* that they were used to create does? Long version: In the code snippet below I create a local XercesDOMParser* and DOMDocument* in order to…
John Fitzpatrick
  • 4,207
  • 7
  • 48
  • 71
0
votes
1 answer

Merge two DOM documents using XERCES

I just need to append 1 xml sub-tree to another using xerces, DOMNode *tempNode; DOMElement *temp; DOMNode *paraNode; DOMNode *dest; XMLCh *xmlchElems =…
51k
  • 1,381
  • 3
  • 12
  • 22
0
votes
2 answers

How do I install XML::Xerces?

Please see Part 2 which list latest errors while installing module continued post. Normally when I try to install XML::Xerces CPAN module using standard cpan> install XML::Xercers than I get following error message after some…
Rachel
  • 100,387
  • 116
  • 269
  • 365
0
votes
1 answer

Unable to link xerces2_7.dll with 64 bit application

Hi I am trying to upgrade project which is already build in 32 bit to 64 bit on windows 7. I have this xerces 2_7 dlls used in the application so I downloaded the source code for xerces2_7_0 version and build the libraries in 64 bit. No problem till…
Vivek
  • 233
  • 4
  • 13
0
votes
1 answer

XML validation fails in debug, works in release

My project used to run fine but now somehow I can't run my program with the debug configuration, it will exits mentioning the xml has tags that are not allowed (and give you a list of tags allowed, which you can clearly see is part of it as per this…
FrankBro
  • 229
  • 3
  • 12
0
votes
1 answer

Interpretation of int returned by XalanInitialize()?

I am using XALAN to transform from xsl to html, following is the snippet of the code, // // XALAN_USING_XERCES(XMLPlatformUtils), init namespace // XALAN_USING_XALAN(XalanTransformer) // // 2. Initialize Xalan and Xerces …
51k
  • 1,381
  • 3
  • 12
  • 22
0
votes
1 answer

Xerces-c can't parse inverted question mark

We have xml messages that come from an external system via soap envelopes. If there is an encoding header then we use it otherwise we provide one with UTF-8. Recently we've been getting messages with interesting characters such as inverted question…
OriginalCliche
  • 381
  • 4
  • 15
0
votes
1 answer

How to pass Xml in XercesDOMParser?

I am moving some DOMNode from one document to another; here the code snap XercesDOMParser *parser = new XercesDOMParser; parser->setValidationScheme(XercesDOMParser::Val_Auto); parser->setDoNamespaces(false); …
shan
  • 1,164
  • 4
  • 14
  • 30
0
votes
1 answer

How to set proxy for xerces-c for VC++?

Using CodeSynthesis XSD 3.3 I've generated code to read and write XML. When trying to read, however, I get connection problems (probably because I'm behind a proxy): :0:0 error: unable to connect socket for URL…
Robert F
  • 451
  • 3
  • 13
0
votes
2 answers

XML SAX parser using xerces in c++

#include #include #include #include #include #include #include…
Darshan
  • 151
  • 5
  • 13
0
votes
0 answers

Ignore initial data when parsing XML with Xerces

I hope someone on here has some knowledge of using xerces-c. I have a string that contains a valid XML packet. It had however some leading data that has nothing to do with the XML. Is it possible to have the xerces-c SAXParser ignore any leading…
Lieuwe
  • 1,734
  • 2
  • 27
  • 41
0
votes
2 answers

unordered key_type for non library types requires hash<> specialization?

I'm trying to create an std::unordered_map with xercesc::XMLUri as the key type. #include #include "xercesc/util/XMLUri.hpp" int main() { std::unordered_map uriMap; } resulting in the…
hhbilly
  • 1,265
  • 10
  • 18
0
votes
0 answers

C++ string with newlines and double quotes encoded as XML CDATA

I have a string (representing some Javascript code) with double quotes and newline characters like say: