Forum

XPath return XML

hi,

is there a way to get back xml blocks via xpath? i just can get attribute values and so on. but i can’t get a complete block. ex:

{CODE(ln=>1)}<root>
<test>
<hello />
</test>
</root>^

xpath: {CODE(ln=>1)}/root/test^

should return:
{CODE(ln=>1)} <test>
<hello />
</test>^

thanx in advance

i don’t think vvvvs’ xpath supports this, but you can instead use RegExpr (String) to get the text between two tags.

that’s what xslt is for

xsl:copy-of select:/root/test
will do (and of course with all the header stuff you need for a xsl stylesheet)