#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.

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.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks