transparent
Programmer
I have the following xml:
<content>
<story>
<file>news2002061001.xml</file>
<folder>music</folder>
<published>no</published>
</story>
<story>
<file>news2002010001.xml</file>
<folder>political</folder>
<published>no</published>
</story>
</content>
I need to select a story with a specific file name. I tried:
Set obj_XML = GetXMLDoc("xml/content.xml"
set obj_XMLContent = obj_XML.documentElement
set obj_XMLField = obj_XMLContent.selectSingleNode("story[@file='" & str_XMLFilename & "']"
Any ideas whats wrong? What code should I use?
<content>
<story>
<file>news2002061001.xml</file>
<folder>music</folder>
<published>no</published>
</story>
<story>
<file>news2002010001.xml</file>
<folder>political</folder>
<published>no</published>
</story>
</content>
I need to select a story with a specific file name. I tried:
Set obj_XML = GetXMLDoc("xml/content.xml"
set obj_XMLContent = obj_XML.documentElement
set obj_XMLField = obj_XMLContent.selectSingleNode("story[@file='" & str_XMLFilename & "']"
Any ideas whats wrong? What code should I use?