Hi,
I am having problems getting the inner value of a node in an xmldocument.
Below is a sample of the document:
Code:
<help>
<topic id="1" admin="false">
<question>How do I change the relationship between this portal and other portals in the related portals section?</question>
<answer>The portals can be arranged in a hierarchical structure to allow users to better navigate between the different portals, if you want a portal to appear underneath another portal, or want another portal to be listed under this portal, please contact the <a href="mailto:jbolt@foo.com">admin</a> stating which portal you want to move and where you want to move it to.</answer>
</topic>
<topic id="2" admin="false">
<question>How do I retire a portal?</question>
<answer>Please contact the <a href="mailto:jbolt@foo.com">admin</a> stating which portal needs to be retired. By retiring the portal, the relevant modifier will no longer be visible in the document id tool; however the portal and all its documentation will still be accessible by viewing the <a href="http://dmportls-wxp/dmportls/?modifier=RETIRED">RETIRED</a> portal.</answer>
</topic>
</help>
When I use the code
Code:
xmlDoc.getElementsByTagName("answer")[1].firstChild.nodeValue
I only get the string
It doesnt retrieve the <a> tag or anything after it, is there something similar to teh innerHTML funciton you can use on HTML elements to get the complete contents of a tag?
Thanks!