Code below returns null
DOMElement *domElement = parserDom->getDocument()->getElementById(
XMLString::transcode("75"));

parserDom is initialized as
   parserDom = new XercesDOMParser();
    parserDom->setValidationScheme(XercesDOMParser::Val_Always);
    parserDom->setDoNamespaces(false);
    //parserDom->setExternalSchemaLocation("http://www.w3schools.comrules.xsd";);
    parserDom->setDoSchema(true);
    parserDom->setValidationSchemaFullChecking(true);
-------------------------------------------------
xml snippet below
......
<Server xmlns="http://www.w3schools.com";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="
http://www.w3schools.com rules.xsd">
<AnElement id="75">
</Server>
----------------------------------
The xsd
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; targetNamespace="
http://www.w3schools.com"; xmlns="http://www.w3schools.com";
elementFormDefault="unqualified">
<xs:element name="AnElement ">
 <xs:complexType>
   <xs:attribute name="id" type="xs:NMTOKEN" use="required"/>
 </xs:complexType>
</xs:element>
</xs:schema>
----------------------------------

i am using vc9 on winxp, with xerces-c-3.0.0-x86-windows-vc-9.0
Its really getting on my nerves why this simple api call is not working.
added to that the xerces tutorials are non existent.
Can anyone shine a light in this tunnel?

Mr Su

Reply via email to