Topic: XML to string (Page 1 of 1) Pages that link to <a href="" title="Pages that link to Topic: XML to string (Page 1 of 1)" rel="nofollow" >Topic: XML to string <span class="small">(Page 1 of 1)</span>\

Bipolar (III) Inmate

From: övik
Insane since: Dec 2002

IP logged posted posted 12-19-2003 17:56 Edit Quote

If I have gotten hold of the tag 'data' using xml.getElementByTagName("data"), is there any way that I can extract the content as a string containing it's children?
Like "<tag>1</tag><tag>2</tag>" etc..?


Nervous Wreck (II) Inmate

Insane since: Jul 2003

IP logged posted posted 12-19-2003 18:58 Edit Quote

You can try the innerHTML attribute. E.g.:

var dataContent = document.getElementByTagName('data')[0].innerHTML;

Post Reply
Your User Name:
Your Password:
Login Options: Remember Me On This Computer
Your Text:
Options: Show Signature
Enable Slimies
Enable Linkwords

« BackwardsOnwards »

Show Forum Drop Down Menu