how to get the HTML content from the XML for Rational Requirement Management
Folllowing is the XML that i got for a particular requirement .It contains HTML contents in it how can i parse that content alone or is there any url that i can query to get that contents.
<rdf:RDF>
</rdf:RDF>
|
One answer
Here's a little secret you can use at our own risk...
When you are viewing an artifact, the url will contain this: /rm/web#action=com.ibm.rdm.web.pages.showArtifact If you change it to the following, you enable an extra feature at edit time: /rm/web?debug=true#action=com.ibm.rdm.web.pages.showArtifact Now when you press edit, there will be a "Source" button on the left side of the editor toolbar. Pressing this will switch you into a source view mode that shows your content as the raw HTML, and in fact, you can make direct HTML changes there. *But be warned*, if you mess up the HTML, you are on your own! The source pane doesn't really size to match the browser, but if all you want to do is see/copy the HTML, that's the easiest way to do it. Comments
Prashant Kumar
commented Sep 02 '13, 8:45 a.m.
how can i get only the text content from HTML inside XML Can you clarify exactly what it is you need to accomplish because the question seems to have changed. If you just want the text, then why not simply select it and use copy/paste while viewing the artifact?
|
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.
Comments
From that data, the node <jazz_rm:primaryText rdf:parseType="Literal"> is a good place to look for the primary text of a text artifact.
how can i get only the text content from HTML inside XML