Can't select <text>
Status: Beta
Brought to you by:
eobrain
If my XML file includes:
<Card set="MySet">
<type>MyType</type>
<name><![CDATA[MyTitle]]></name>
<subtitle>MySubtitle</subtitle>
<text><![CDATA[MyText]]></text>
</Card>
And my code includes:
String xmltext;
...
Document doc = Parser.parse( xmltext );
xpath = "/CardList/Card/text";
Element match = doc.xpathSelectElement(xpath);
System.out.println( match.toXml() );
I get an XPathException because Sparta thinks I
meant "text()". I can reach type, name, and subtitle
without problems.