T
Tim Hallwyl
Hi there!
I am trying to evaluate an XPath expression using variables, like this:
"$foo/Street" -- where $foo is a variable with an Address element,
containing a Street element:
<Address>
<ID>Fakturering</ID>
<Street>Holsteinsgade</Street>
<HouseNumber>63</HouseNumber>
<CityName>København Ø.</CityName>
<PostalZone>2100</PostalZone>
<Country>
<Code>DK</Code>
</Country>
</Address>
While evaluating the simple "$foo" expression works fine, the
"$foo/Street" expression throws an exception with the message "Unknown
error in XPath".
Any help, hints or references to documentation is appreciated. Thank you
for your time. I hope to be able to help you out some day.
The attached source code and XML file illustrates this problem if you
like to try it out your self. I used a JDK 1.5.0_08.
I am trying to evaluate an XPath expression using variables, like this:
"$foo/Street" -- where $foo is a variable with an Address element,
containing a Street element:
<Address>
<ID>Fakturering</ID>
<Street>Holsteinsgade</Street>
<HouseNumber>63</HouseNumber>
<CityName>København Ø.</CityName>
<PostalZone>2100</PostalZone>
<Country>
<Code>DK</Code>
</Country>
</Address>
While evaluating the simple "$foo" expression works fine, the
"$foo/Street" expression throws an exception with the message "Unknown
error in XPath".
Any help, hints or references to documentation is appreciated. Thank you
for your time. I hope to be able to help you out some day.
The attached source code and XML file illustrates this problem if you
like to try it out your self. I used a JDK 1.5.0_08.