Topic: XML to string (Page 1 of 1) Pages that link to <a href="http://ozoneasylum.com/backlink?for=11120" 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>\

 
amikael
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..?

(^-^)b

MajorFracas
Nervous Wreck (II) Inmate

From:
Insane since: Jul 2003

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

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

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







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

« BackwardsOnwards »

Show Forum Drop Down Menu