Topic: XML to string |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: övik |
![]() ![]() ![]() ![]() 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? |
Nervous Wreck (II) Inmate From: |
![]() ![]() ![]() ![]() You can try the innerHTML attribute. E.g.: code: var dataContent = document.getElementByTagName('data')[0].innerHTML;
|