It's all about the answers!

Ask a question

How can i get text content from HTML inside XML.


Prashant Kumar (134) | asked Sep 02 '13, 8:44 a.m.
How can i get text content from HTML inside XML.

 <jazz_rm:primaryText rdf:parseType="Literal">
<div>
<p id="_1283286295984"> A donor can choose the following frequencies:p>
<ul id="_1283286295990">
<li id="_1283286295991">
<p id="_1283286295985">
- This is what is supported in the first release
p>
li>
<li id="_1283286295992">
<p id="_1283286295986"> Schedule a regular paymentp>
li>
<li id="_1283286295993">
<p id="_1283286295987"> Monthlyp>
li>
<li id="_1283286295994">
<p id="_1283286295988"> Quarterlyp>
li>
<li id="_1283286295995">
<p id="_1283286295989"> Annualp>
li>
ul>
div>
jazz_rm:primaryText>

Comments
sam detweiler commented Sep 02 '13, 11:54 a.m.

I guess you would get the text node of the primaryText element. then treat that string as an html string and parse it approriately

One answer



permanent link
Stef van Dijk (2.0k179) | answered Sep 02 '13, 11:58 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
You will have to either find or write an HTML parser.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.