-
xml xpath confusing
I create an object of Microsoft.xmlDOM. load a xml file(validation no error).
and objXMLDoc.setProperty "SelectionLanguage", "XPath"
Then use
Set NodeList = objXMLDoc.getElementsByTagName("appointment")
to successfully retrieve a list of nodes with tagName "appointment"
However, when I change the following code
Set NodeList = objXMLDoc.selectNodes("//appointment")
to hope to retrieve the same information, but get nothing. I get the length of the nodes is 0.
If I change other xml files, both above selectNodes and getElementsByTagName will get the same results.
Anybody met the same problem before, what is the casue
Similar Threads
-
By Tim in forum xml.announcements
Replies: 0
Last Post: 10-11-2001, 04:00 PM
-
By xmlstartkabel in forum XML
Replies: 0
Last Post: 10-10-2001, 04:07 AM
-
By Tim Frost in forum xml.announcements
Replies: 0
Last Post: 04-02-2001, 10:53 AM
-
By Extensibility in forum web.announcements
Replies: 0
Last Post: 07-20-2000, 06:20 PM
-
By Sales in forum xml.announcements
Replies: 0
Last Post: 07-20-2000, 06:18 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|