I have a response XML that I got from xmlhttprequest. I have pasted the part of XML below which has <w:p><w:r><w:t> tags. I need to extract the content of <w:t> tag and display in word document. How can I achieve this ? I am looking for Javascript code or Java Apache POI.
<w:body>
-<w:p w:rsidP="005F7201" w:rsidRDefault="005E6C4D" w:rsidR="00630BE9">
-<w:pPr>
<w:pStyle w:val="NoSpacing"/>
<w:jc w:val="left"/>
<w:tabs> </w:tabs>
</w:pPr>
-<w:r>
-<w:rPr>
<w:rFonts w:ascii="Times New Roman"/>
<w:sz w:val="22"/>
<w:szCs w:val="22"/>
</w:rPr>
<w:t xml:space="preserve"/>
</w:r>
</w:p>
-<w:p w:rsidP="005F7201" w:rsidRDefault="005E6C4D" w:rsidR="00630BE9">
-<w:pPr>
<w:pStyle w:val="NoSpacing"/>
<w:jc w:val="left"/>
-<w:tabs>
<w:tab w:val="left" w:pos="1"/>
<w:tab w:val="left" w:pos="6480"/>
</w:tabs>
</w:pPr>
-<w:r>
-<w:rPr>
<w:rFonts w:ascii="Times New Roman"/>
<w:sz w:val="22"/>
<w:szCs w:val="22"/>
</w:rPr>
<w:tab/>
<w:t xml:space="preserve">LOST CREEK CARE CENTER</w:t>
</w:r>
-<w:r>
-<w:rPr>
<w:rFonts w:ascii="Times New Roman"/>
<w:sz w:val="22"/>
<w:szCs w:val="22"/>
</w:rPr>
<w:tab/>
<w:t xml:space="preserve">LOST CREEK CARE CENTER</w:t>
</w:r>
</w:p>
</w:body>