I am supporting a legacy C++ application which uses Xerces-C for XML parsing. I've been spoiled by .Net and am used to using XPath to select nodes from a DOM tree.
Is there any way to get access some limited XPath functionality in Xerces-C? I'm looking for something like selectNodes("/for/bar/baz"). I could do this manually, but XPat...
Hello, I am new to this site so I apologize in advance.
I am trying to modify an XML document using Xerces C 2.8. I'm somewhat familiar with Xercess though not proficient with it. What I am trying to do is:
1. make a function that will take a search node string and an insert node string,
2. parse a document and gather all searchnode ...
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 processing:
XML-Xerces-2.7.0-0/samples/SEnumVal.pl
...
XML-Xerces-2.7.0-0/postSource.pl
XML-Xerces-2.7.0-0/xerc...
Hi,
I'm trying to compile a program running on an HP UX server on a Red Hat Linux.
It uses xerces-c library to parse xml files. Compilation is ok, but when i try to run it, I get the following message
./a.out: error while loading shared
libraries: libxerces-c.so.28: cannot
open shared object file: No such file
or directory
...
The Visual Studio 2008 environment(on Windows Xp) has some variables set in already WindowsSdkDir and VCInstallDir etc.. I want to setup portable cross platform packages like Xerces here : C:\Program Files\xerces-c-windows_2000-msvc_60 and configure Visual Studio 2008 environment VC++ include and lib directories with an environment va...
I want to load an XML document in Xerces-C++ (version 2.8, under Linux), and validate it using a DTD schema not referenced from the document. I tried the following:
XercesDOMParser parser;
parser.loadGrammar("grammar.dtd", Grammar::DTDGrammarType);
parser.setValidationScheme(XercesDOMParser::Val_Always);
parser.parse("xmlfile.xml");
B...
I have found some strange lines in xerces-c. For example, in BaseRefVectorOf.hpp, there is the following at the end:
#if !defined(XERCES_TMPLSINC)
#include <xercesc/util/BaseRefVectorOf.c>
#endif
What is the purpose of this? Should I define XERCES_TMPLSINC or should I leave it as is?
...
Tried to implement a small XML validation tool with XercesC.
For some reason I cannot use existing validators right from the box - I need some preprocessing and would like to combine it with validation in a single tool.
I used DOM parser and specified DOMErrorHandler.
Instead of a set of errors with detailed messages like I saw from xml...
How can I cache an XSD schema (residing on disk) to be reused when parsing XMLs in Xerces (C++)?
I would like to load the XSD schema when starting the process, then, whenever I need to parse an XML, to validate it first using this loaded schema.
...
Hi,
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 --enable-msgloader-icu --disable-shared --disable-network --enable-static --disable-t...
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: warning: libxerces-c-3.0.so, needed by /usr/local/lib/liborocos-rtt-gnulinux.so, not found (tr...
Hi,
Say I have a schema which defines an element as follows:
<xsd:element name="Widget" type="tns:WidgetType" />
<xsd:complexType name="WidgetType">
<xsd:sequence>
<xsd:element name="Name" type="xsd:normalizedString" maxOccurs="1" minOccurs="1" />
<xsd:element name="Description" type="xsd:normalizedString" default="Unknown" ...
I would like to migrate a project (legacy code which I am not quite familiar with) from Xerces-C v2.x to v3.x.
It turns out that Xerces-C v3 dropped the DOMBuilder class. The migration archive tells me this:
...a number of DOM interfaces (DOMBuilder, DOMWriter, DOMInputSource, etc.) were replaced as part of the the final DOM Level 3...
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 want is just 2 functions:
string escape(string);
string unescape(string);
why xerces mak...
Hi ,
I am wokring on migration my project from xerces 1.4 to 3.1 version.
xerces :1.4
You can call the function getElementsByTagName("tagName") on DOM_Element object .
Now with xerces version 3.1 getElementsByTagName requires const XMLCh* as parameter.
So in order to fix this issue simple solution would be as follows:
const XMLCh*...