Skip to content
Snippets Groups Projects
Commit ceda95c4 authored by Dominique Marcadet's avatar Dominique Marcadet
Browse files

Ignore the URI if present in rdf:resource values

parent 0ac09aa3
No related branches found
No related tags found
1 merge request!12Resolve "value of rdf:resource attribute may contain an uri before the fragment identifier"
Pipeline #1114 passed
......@@ -203,6 +203,12 @@ public abstract class CimXMLHandler extends SAXXMLHandler {
// Take care of references
String resource = attribs.getValue( CimConstants.qualifiedRdfResource );
if( resource != null ) {
int p = resource.indexOf( "#" );
if( p != -1 ) {
// Ignore the URI before the # because we don't handle it
// TODO: handle it!
resource = resource.substring( p );
}
super.setValueFromId( object, eReference, resource );
}
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment