xerces-c

Migration from xerces v1 to xerces v3.1.1

删除回忆录丶 提交于 2020-02-25 05:20:30
问题 I have to migrate my project from xerces 1 to xerces 3.1.1 but I can't find DOMString.hpp. Does someone have an idea where I can find this class? 回答1: DOMString is gone in Xerces-C++ 3. Instead, the Xerces API gives you null-terminated XMLCh strings. 来源: https://stackoverflow.com/questions/8491125/migration-from-xerces-v1-to-xerces-v3-1-1

Migration from xerces v1 to xerces v3.1.1

北战南征 提交于 2020-02-25 05:20:06
问题 I have to migrate my project from xerces 1 to xerces 3.1.1 but I can't find DOMString.hpp. Does someone have an idea where I can find this class? 回答1: DOMString is gone in Xerces-C++ 3. Instead, the Xerces API gives you null-terminated XMLCh strings. 来源: https://stackoverflow.com/questions/8491125/migration-from-xerces-v1-to-xerces-v3-1-1

Integrate schema metatdata during XML Parsing with Xerces C++

空扰寡人 提交于 2020-01-26 02:29:48
问题 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 able to get a nodes info by the getFeature method: info = (xercesc::DOMPSVITypeInfo*) domNode->getFeature(xercesc::XMLUni::fgXercesDOMHasPSVIInfo, xercesc::XMLUni::fgVersion1_1); However I first seem to have to enable this feature. As there is no

Xerces-C validate xml with hardcoded xsd

梦想的初衷 提交于 2020-01-19 15:18:13
问题 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 user could just open this file and mess around with it. That's why i would like my xsd to be hardcoded in my library. Unfortunately i haven't found a way to do this with XercesC++, yet. That's how it is working right now... bool XmlParser:

Xerces-C validate xml with hardcoded xsd

孤人 提交于 2020-01-19 15:17:34
问题 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 user could just open this file and mess around with it. That's why i would like my xsd to be hardcoded in my library. Unfortunately i haven't found a way to do this with XercesC++, yet. That's how it is working right now... bool XmlParser:

Linking a DLL using xerces gives undefined symbols

左心房为你撑大大i 提交于 2020-01-04 06:20:10
问题 I'm creating a shared library/DLL using cygwin which makes use of Xerces. When I call the xercesc functions from the main application everything is fine, but when I try to put some code into the library, then I get undefined symbols for all the static stuff that xerxesc defines. For example: std::string fromXMLString(XMLCh *oXMLString) { std::string result; xercesc::DOMImplementation *impl = xercesc::DOMImplementationRegistry::getDOMImplementation(X("Core")); char *temp = xercesc::XMLString:

XPath support in Xerces-C

ⅰ亾dé卋堺 提交于 2020-01-01 09:13:14
问题 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 XPath is so nice by comparison. 回答1: See the xerces faq. http://xerces.apache.org/xerces-c/faq-other-2.html#faq-9 Does Xerces-C++ support XPath? No.Xerces-C++ 2.8.0

C++ sax2 parser problem

假装没事ソ 提交于 2019-12-24 14:26:27
问题 I want to parse an XML file. My XML looks like this: <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> <!-- Put site-specific property overrides in this file. --> <configuration> <property> <name>tracker</name> <value>localhost:58303</value> <description>The host and port that the MapReduce job tracker runs at. If "local", then jobs are run in-process as a single map and reduce task. </description> </property> </configuration> I use the sxx 2 parser to parse

Xerces-c: XML file validation with xsd file c++

荒凉一梦 提交于 2019-12-24 07:58:11
问题 I am attempting to use Xerces-c. I have a .xsd scheme and want to use it to to validate an XML file. I've define the xsd file and an error handler, but for some reason the xsd is not throwing errors. Any insights to what I may be missing? XercesDOMParser* parser = new XercesDOMParser(); parser->setExternalNoNamespaceSchemaLocation("parser.xsd"); parser->setExitOnFirstFatalError(true); parser->setValidationConstraintFatal(true); parser->setValidationScheme(XercesDOMParser::Val_Auto); parser-

How do I install XML::Xerces?

旧街凉风 提交于 2019-12-11 16:58:34
问题 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/xerces-headers.txt Removing previously used /home/adoshi/.cpan/build/XML-Xerces-2.7.0-0 CPAN.pm: Going to build J/JA/JASONS/XML-Xerces-2.7.0-0.tar.gz WARNING You