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

DOORS NG OSLC REST API jazz_rm:primaryText encoding problem

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?


1

0 votes



One answer

Permanent link
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

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
× 10,927
× 515
× 478
× 139

Question asked: Jun 02 '16, 1:23 p.m.

Question was seen: 3,922 times

Last updated: Jun 06 '16, 3:26 a.m.

Confirmation Cancel Confirm