I need the node AX_Namensnummer
where child node istBestandteilVon
has the attribute value urn:adv:oid:DEBBAL0600000Y09
Here is a small clip from my XML:
<enthaelt>
<wfs:FeatureCollection gml:id="A75">
<gml:featureMember>
<AX_Namensnummer gml:id="DEBBAL0600000XUm">
<gml:identifier codeSpace="http://www.adv-online.de/">urn:adv:oid:DEBBAL0600000XUm</gml:identifier>
<lebenszeitintervall>
<AA_Lebenszeitintervall>
<beginnt>2012-01-11T07:03:49Z</beginnt>
</AA_Lebenszeitintervall>
</lebenszeitintervall>
<modellart>
<AA_Modellart>
<advStandardModell>DLKM</advStandardModell>
</AA_Modellart>
</modellart>
<anlass>000000</anlass>
<laufendeNummerNachDIN1421>0001.00.00.00.00</laufendeNummerNachDIN1421>
<eigentuemerart>3000</eigentuemerart>
<istBestandteilVon xlink:href="urn:adv:oid:DEBBAL0600000Y09"/>
<benennt xlink:href="urn:adv:oid:DEBBAL0600000Y09"/>
</AX_Namensnummer>
</gml:featureMember>
</wfs:FeatureCollection>
</enthaelt>
here are the namespaces:
<AX_Bestandsdatenauszug
xmlns="http://www.adv-online.de/namespaces/adv/gid/6.0"
xmlns:adv="http://www.adv-online.de/namespaces/adv/gid/6.0"
xmlns:gco="http://www.isotc211.org/2005/gco"
xmlns:gmd="http://www.isotc211.org/2005/gmd"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:ows="http://www.opengis.net/ows"
xmlns:wfs="http://www.adv-online.de/namespaces/adv/gid/wfs"
xmlns:wfsext="http://www.adv-online.de/namespaces/adv/gid/wfsext"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ogc="http://www.adv-online.de/namespaces/adv/gid/ogc"
xsi:schemaLocation="http://www.adv-online.de/namespaces/adv/gid/6.0 NAS-Operationen.xsd">
my XPath:
.//{http://www.adv-online.de/namespaces/adv/gid/6.0}AX_Namensnummer/{http://www.adv-online.de/namespaces/adv/gid/6.0}istBestandteilVon[@{http://www.w3.org/1999/xlink}href='urn:adv:oid:DEBBAL0600000Y09']
I get the node istBestandteilVon
, but I need AX_Namensnummer
.
What am I doing wrong?