Topic: XML to string Pages that link to <a href="https://ozoneasylum.com/backlink?for=11120" title="Pages that link to Topic: XML to string" rel="nofollow" >Topic: XML to string\

 
Author Thread
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:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu