Hi all,

i'm stuck with a (quite simple?) problem. I want to create a Filter using
simple XPath-expression:

<?xml version="1.0" encoding="UTF-8"?>
<wsnt:MessageContent
    Dialect="http://www.w3.org/TR/1999/REC-xpath-19991116";
    xmlns:om="http://www.opengis.net/om/1.0";
    xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"; xmlns:xlink="
http://www.w3.org/1999/xlink";>

//om:Observation/om:procedure/@xlink:href='urn:ogc:object:procedure:CITE:WeatherService:LGA'
</wsnt:MessageContent>

Reading this file with XmlUtils to a org.w3c.dom.Document works well. But
then creating the filter with

Filter f =
FilterFactory.getInstance().newInstance(doc.getDocumentElement());

results in the following representation of Filter:

<wsnt:Filter xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2";>
    <wsnt:MessageContent Dialect="
http://www.w3.org/TR/1999/REC-xpath-19991116";>*</wsnt:MessageContent>
</wsnt:Filter>

Perhaps I did not realize the right way of creating the XPath-Filter?

Best Regards,
Matthes

Reply via email to