It's all about the answers!

Ask a question

DOORS NG OSLC REST API jazz_rm:primaryText encoding problem


0
1
Luis Silva (2557) | asked Jun 02 '16, 1:23 p.m.
edited Jun 03 '16, 6:36 a.m.

Hi all,

I have a lot of artifacts in xml format which have a specific atribute called "description" that I want to insert to DOORS NG as jazz_rm:primaryText. When I GET a requirement from DOORS NG I can see that the primary text is encoded has such:

 < jazz_rm:primaryText rdf:parseType="Literal">
            < div xmlns="http://www.w3.org/1999/xhtml">
                < p dir="ltr" id="_1464887777339">This is my first test</p>
                < p dir="ltr" id="_1464887777340"> </p>
                < p dir="ltr" id="_1464887777341">Last line. </p>
            < /div>
 < /jazz_rm:primaryText>

But the description I want to insert is in text-type="text/HTML". When I try to insert the text inside the primary text the server responds with a bad encoding error. Do I have to convert the HTML to XHTML and insert inside the div tabs or is there any way of specifing that jazz_rm:primaryText  will be encoded in HTML instead of xhtml?


One answer



permanent link
Donald Nong (14.5k414) | answered Jun 06 '16, 3:26 a.m.
Chances are your HTML source is not well-formed. Also, as far as I know, the primary text does not support all HTML/XHTML tags. So you may need to be specific what works and what does not. See here for more details about HTML vs XHTML.
http://www.w3schools.com/html/html_xhtml.asp

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.