how to get the HTML content from the XML for Rational Requirement Management
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.
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
My-An Nguyen
Aug 30 '13, 11:53 a.m.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.
Prashant Kumar
Sep 02 '13, 8:45 a.m.how can i get only the text content from HTML inside XML