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

Nodes are not getting parsed for RTC 3.0.1.2 with OSLC 2.0

 Hi,
I am using RTC 3.0.1.2 & want to extract the dc:title nodes using Rest API. Below is the code snippet I am using for the same.

HttpGet catalogDoc = new HttpGet(url);
catalogDoc.addHeader("Accept", "application/rdf+xml");
catalogDoc.addHeader("OSLC-Core-Version", "2.0");

catalogResponse= HttpUtils.sendGetForSecureDocument(server, catalogDoc, login, password, httpclient);

if (catalogResponse.getStatusLine().getStatusCode() == 200) {

xpath.setNamespaceContext(new NamespaceContextMap(new String[]{ "oslc_disc","http://open-services.net/xmlns/discovery/1.0/",
"dc", "http://purl.org/dc/terms/"}));

source = new InputSource(catalogResponse.getEntity().getContent());

titleNodes = (NodeList) (xpath.evaluate("/oslc_disc:ServiceProviderCatalog/oslc_disc:ServiceProvider/dc:title", source, XPathConstants.NODESET));


I am getting the below error while invoking 'xpath.evaluate' call in the above last line.

org.xml.sax.SAXParseException: The reference to entity \"etag\" must end with the ';' delimiter.\r\n\tat com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)\r\n\tat com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)



Need urgent help to fix this issue. Let me know if somebody has any solution.

Thanks
Guru

0 votes


Be the first one to answer this question!

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
× 3,980
× 98

Question asked: Jan 27 '13, 11:40 a.m.

Question was seen: 335 times

Last updated: Jan 27 '13, 11:40 a.m.

Related questions
Confirmation Cancel Confirm