Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1689

Retrieving XML attributes with XMLXPATH in v28

$
0
0
Hello

I have an XML file with the following structure

XML:
<Connect version='1.0'>
    <!-- ... -->
</Connect>

Prior to v28, I was using the following to retrieve the value of the 'version' attribute:

Code:
ECHO %@XMLXPATH["test.xml",/Connect/@version]

However, in v28 TCC is returning an error:

Code:
TCC:  "/Connect/@version"

I can work around this using a combination of XMLOPEN, XMLXPATH and XMLGETATTR, but is this a known issue in v28 or do I need to change the syntax of the...

Read more

Viewing all articles
Browse latest Browse all 1689

Trending Articles