This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Microsoft XML > May 2007 > getElemementsByTagName
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
getElemementsByTagName
|
|
|
| Hello,
Good evening.
Set varNode =
xmldom.getElementsByTagName("Tags/Block/Tag[TagSetName='tblock' and
TagDefName='fax&ph']")
is not retrieving the node containing fax&ph (& is internally stored as
& in the XML file)
Is there any workaround?
Thank you,
Regards,
Raj.
| |
| Martin Honnen 2007-05-03, 6:16 pm |
| Raj wrote:
> Set varNode =
> xmldom.getElementsByTagName("Tags/Block/Tag[TagSetName='tblock' and
> TagDefName='fax&ph']")
>
> is not retrieving the node containing fax&ph (& is internally stored as
> & in the XML file)
Use the method selectNodes, not getElementsByTagName. And if you are
using MSXML 3 then make sure you call
xmldom.setProperty "SelectionLanguage", "XPath"
first before you use selectNodes.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|