Fix regular expressions to handle self closing tags, for example
<cim:IdentifiedObject.description/>
Operations in xslt processing using javax.xml.transform.TransformerFactory output self closing tags where the contents of an element are empty. This should be handled by the regular expressions used to parse the CIM RDF files.
To test, use a Java program like the attached Transform.java and identity.xslt, to transform an RDF with an empty element, and test that it is correctly read in by the CIMReader.
SelfClosingTagsTest.zip
Fix regular expressions to handle self closing tags, for example
<cim:IdentifiedObject.description/>
Operations in xslt processing using javax.xml.transform.TransformerFactory output self closing tags where the contents of an element are empty. This should be handled by the regular expressions used to parse the CIM RDF files.
To test, use a Java program like the attached Transform.java and identity.xslt, to transform an RDF with an empty element, and test that it is correctly read in by the CIMReader. SelfClosingTagsTest.zip