Menu

#57 Regression: Markup_language not recognized for noNamespaceSchemaLocation xml files

v1.0_(example)
open
nobody
xml (1)
9
2014-08-18
2014-01-04
Thomas
No

When parsing a xml file with xsi:noNamespaceSchemaLocation attribut (like <tei.2 xsi:nonamespaceschemalocation="tdmNum.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">), the XmlModule generates an extra empty Schema property in the Schemas arrays. This disables the generation of the textmd:markup_language attribute in the output.</tei.2>

To avoid this, an extra check is needed startElement() method of the XmlModuelHandler. Namely, modifying line 167, from

    if (namespaceURI != null) {

to
if (namespaceURI != null && namespaceURI.length() != 0) {

Thanks

Discussion


Log in to post a comment.

MongoDB Logo MongoDB