Hi everyone,
i have an xml file that looks like this:
What i want to do now is to get the values for the postgreTable, overwrite, ... elements depending on the value of the accessTableName attribute. So my query looks like this:
where someTableName is the name of the accessTableName attribute. Unfortunately it does not work, because it doesn't retrieve anything.
Thanks
i have an xml file that looks like this:
Code:
<myns:importDescription xmlns:myns='[URL unfurl="true"]http://xml.netbeans.org/examples/targetNS'[/URL]
xmlns:xsi='[URL unfurl="true"]http://www.w3.org/2001/XMLSchema-instance'[/URL]
xsi:schemaLocation='[URL unfurl="true"]http://xml.netbeans.org/examples/targetNS[/URL] file:/D:/Programmierung/Projekte/JaGeneJDev/JaGene/resources/accessImport.xsd'>
<myns:mapping accessTableName="someTableName">
<myns:postgreTable>anthropometrie</myns:postgreTable>
<myns:csvSeparationChar>;</myns:csvSeparationChar>
<myns:overwrite>true</myns:overwrite>
</myns:mapping>
</myns:importDescription>
Code:
myns:importDescription/myns:mapping[attribute::accessTableName='someTableName']/myns:csvSeparationChar
where someTableName is the name of the accessTableName attribute. Unfortunately it does not work, because it doesn't retrieve anything.
Thanks