Forum Moderators: open
This is probably a really dumb question but.... How do I get the node text value of /testxml (see below) without getting the text value of any child nodes (testnode) using XPATH and XSLT?
<?xml version="1.0"?>
<testxml>
testxmlvalue
<testnode>
testnodevalue
</testnode>
</testxml>
XSLT is a bit more tricky, XSLT is a transformation language so I'd suggest that you use the same xpath pattern to lactate the tag and apply an appropriate template.
Not sure if this answers your question!
I always check out my xpath patterns on this site. It's quite good for a quick test:
[perfectxml.com...]
I hope that this answers your question! My XML is still very very raw!
I just spent a good bit of time pouring over the local variable stack when I load up that XML and I can't find a property (out of hundreds) that contains just "testxmlvalue" as it's value. The properties always contain the rest of the NODE.
Realize, you are asking for the TEXT value of an XML NODE that contains more than just the word "testxmlvalue". It also contains more text (XML formatted but it is the string representation of what is inside the tag <testxml>.