R
Ragnar Heil
with a special method of my application I generate this XML-tree:
<tcm:RenderInstruction xmlns:tcm="http://myNamespace">
<tcm:Item xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="tcm:16-12817-64"
xlink:title="20050309_Enterprise_Information_Integration - 16-12814
Page" xlink:type="simple"/>
<tcm:ActivateBlueprinting>false</tcm:ActivateBlueprinting>
<tcm:ActivateWorkflow>false</tcm:ActivateWorkflow>
<tcm:RenderMode>Publish</tcm:RenderMode>
<tcmublicationTarget xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="0-2-65537" xlink:title="Staging on local system"
xlink:type="simple"/>
</tcm:RenderInstruction>
Now I want to get this value: "tcm:16-12817-64" (node: tcm:Item)
I tried many different approaches like
set itemNode = objXML.selectSingleNode("/tcm:RenderInstruction/tcm:Item/@xlink:href")
---
Set itemNode = objXML.selectSingleNode("*[local-name() = 'tcm:Item]")
---
set itemNode = objXML.GetElementsByTagName("tcm:Item")
I always get the "object required"-error
thanks in advance
Ragnar
<tcm:RenderInstruction xmlns:tcm="http://myNamespace">
<tcm:Item xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="tcm:16-12817-64"
xlink:title="20050309_Enterprise_Information_Integration - 16-12814
Page" xlink:type="simple"/>
<tcm:ActivateBlueprinting>false</tcm:ActivateBlueprinting>
<tcm:ActivateWorkflow>false</tcm:ActivateWorkflow>
<tcm:RenderMode>Publish</tcm:RenderMode>
<tcmublicationTarget xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="0-2-65537" xlink:title="Staging on local system"
xlink:type="simple"/>
</tcm:RenderInstruction>
Now I want to get this value: "tcm:16-12817-64" (node: tcm:Item)
I tried many different approaches like
set itemNode = objXML.selectSingleNode("/tcm:RenderInstruction/tcm:Item/@xlink:href")
---
Set itemNode = objXML.selectSingleNode("*[local-name() = 'tcm:Item]")
---
set itemNode = objXML.GetElementsByTagName("tcm:Item")
I always get the "object required"-error
thanks in advance
Ragnar