derrickoswald / CIMSpark

Spark access to Common Information Model (CIM) files
MIT License
15 stars 1 forks source link

handle XML self-closing tags #22

Closed derrickoswald closed 4 years ago

derrickoswald commented 4 years ago

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

derrickoswald commented 4 years ago

Fixed with commit af248591a82e075a8be1e71e81ae7ecc989c98af. Release to Maven Central as version 2.12-3.0.0-5.0.3.