public MultiXSDSchemaFiles encode ( ) { MultiXSDSchemaFiles files = new MultiXSDSchemaFiles ( ) ; for ( Map . Entry < String , DOMResult > entry : schemas . entrySet ( ) ) { MultiXSDSchemaFile file = new MultiXSDSchemaFile ( ) ; file . name = entry . getKey ( ) ; file . schema = getElement ( entry . getValue ( ) . getNode ( ) ) ; files . files . add ( file ) ; } // Now loosen xml:any namespace=##other to xml:any namespace=##any if ( loosenXmlAnyConstraints ) MultiXSDSchemaLoosener . loosenXmlAnyOtherNamespaceToXmlAnyAnyNamespace ( files ) ; return files ; }
Produces an XML Schema or a Stdlib SchemaFiles document containing the XML Schemas