Trouble retrieving inner text from XML node using JavaScript
Posted
by Jack Roscoe
on Stack Overflow
See other posts from Stack Overflow
or by Jack Roscoe
Published on 2010-06-07T12:36:25Z
Indexed on
2010/06/07
12:52 UTC
Read the original article
Hit count: 492
I'm reading an XML document using JavaScript & jQuery, and need to extract some text from inside a node to save into an array. The structure of the XML is as such:
<C>
<I>
<TEXTFORMAT>
<P>
<FONT>Here's the text I want</FONT>
</P>
</TEXTFORMAT>
</I>
</C>
Everything I've tried so far returns nothing so I must be incorrectly referencing the contents of the FONT tag.
What XML path should I be using?
© Stack Overflow or respective owner