| | |
Can't access root attribute!
![]() |
•
•
Join Date: Oct 2008
Posts: 1
Reputation:
Solved Threads: 0
I've read a ton of things online but i'm still unable to access the attribute within my root. My root is called "Customers" and the attribute is called "id". While I can see the text details (and everything else too) in the innerXML but I can't query it and get a value. I've tried /root@id, root@id, /@id,.... always coming up empty. Here's one of the many tries below:
Any help is appreciated!
Thanks!
XML, XSLT and XPATH Syntax (Toggle Plain Text)
Dim xmlNav As XPathNavigator Dim xmlNI As XPathNodeIterator Dim sTemp As String Try xmlNav = xpathDoc.CreateNavigator() xmlNI = xmlNav.Select("root@id") sTemp = xmlNI.Current.GetAttribute("id", String.Empty) and so on....
Any help is appreciated!
Thanks!
![]() |
Similar Threads
- error: The value for the useBean class attribute is invalid (JSP)
- AJAX Question (JavaScript / DHTML / AJAX)
- to select a string from textarea (JavaScript / DHTML / AJAX)
- Location of Javascript files on server (JavaScript / DHTML / AJAX)
- Identifying Drivers needed (Windows 95 / 98 / Me)
- Tkinter exception (Python)
- Moving to Python From PHP: Using a variable in a function (Python)
- Removal of Home Search Assistent (Viruses, Spyware and other Nasties)
- Active Directory (Windows NT / 2000 / XP)
Other Threads in the XML, XSLT and XPATH Forum
- Previous Thread: how to convert xml format into sql database format?
- Next Thread: XML + XSL embedded into HTML
| Thread Tools | Search this Thread |
api blogger blogging code delete development dynamiccreationofnvariablesinxslt error firstthreecharacterofastringrequired flipbook gdata google html include java link linspire linux microsoft news node openoffice overwrite precedence programming rss standards swf template transform variable w3c web xml xmlnotloading xmlonserver xsl xslt





