I'm having a problem using the SimpleXPathAPI example with Xalan-C++. All works fine 
until I add namespace and schema attributes. I've tried the setUseValidation(true) and 
setDoNamespaces(true) and still my XPath expressions evaluate to null. What am I 
missing here? How do I get the XpathEvaluator to handle namespaces and schemas?

Example:

This XML works

<?xml version="1.0" encoding="UTF-8"?>
<OTA_HotelResNotifRQ
    EchoToken="6543215"
    TimeStamp="2001-05-23T06:13:57.000-00:00"
    Version="1">
    <UniqueId Type="PCANCEL" Id="1" Instance=""/>
    <HotelReservations>
        <HotelReservation
        ...
        </HotelReservation>
    </HotelReservations>
</OTA_HotelResNotifRQ>

But this doesn't

<?xml version="1.0" encoding="UTF-8"?>
<OTA_HotelResNotifRQ
    xmlns="http://www.opentravel.org/OTA";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xsi:schemaLocation="http://www.opentravel.org/OTA OTA_HotelResNotifRQ.xsd"
    EchoToken="6543215"
    TimeStamp="2001-05-23T06:13:57.000-00:00"
    Version="1">
    <UniqueId Type="PCANCEL" Id="1" Instance=""/>
    <HotelReservations>
        <HotelReservation
        ...
        </HotelReservation>
    </HotelReservations>
</OTA_HotelResNotifRQ>

Thanks for any help...

Steve

Reply via email to