| Welcome to WebmasterWorld Guest from 22.214.171.124 |
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
|Subscribe and Support WebmasterWorld|
| 3:28 pm on Mar 28, 2005 (gmt 0)|
<User id="EEB5604C" name="C: SPaget">
Please let me know if you have any ideas...
| 5:51 pm on Mar 28, 2005 (gmt 0)|
You will need to use the DOM for attributes. Try the following syntax:
document.getElementByTagname(TAG NAME IN QUOTES).attributes.getNamedItem(ATTRIBUTE NAME IN QUOTES).value;
I know its a pain with the DOM, but it works for me.
I tried it on my machine and it works :)
| 6:46 pm on Mar 28, 2005 (gmt 0)|
Could you send me your sample file?
Here is what I have:
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM")
XML File (note2.xml):
<person name="Todd" />
I am just trying to get the name to display in the webpage, any help would be greatly appreciated, thanks again for your help.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved