Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How can i get text content from HTML inside XML.

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>

0 votes

Comments

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
You will have to either find or write an HTML parser.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 31
× 16

Question asked: Sep 02 '13, 8:44 a.m.

Question was seen: 4,871 times

Last updated: Sep 02 '13, 11:58 a.m.

Confirmation Cancel Confirm