public class XmlSchemaSerializer
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
XmlSchemaSerializer.XmlSchemaSerializerException
Exception class used for serialization problems.
|
| Modifier and Type | Field and Description |
|---|---|
(package private) java.util.List<org.w3c.dom.Document> |
docs |
private ExtensionRegistry |
extReg
Extension registry for the serializer
|
(package private) org.w3c.dom.Element |
schemaElement |
private java.util.Map<java.lang.String,java.lang.String> |
schemaNamespace |
private static java.lang.String |
XMLNS_NAMESPACE_URI |
static java.lang.String |
XSD_NAMESPACE |
(package private) java.lang.String |
xsdPrefix |
| Constructor and Description |
|---|
XmlSchemaSerializer()
Create a new serializer.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
appendElement(org.w3c.dom.Document doc,
org.w3c.dom.Element parent,
org.w3c.dom.Node children,
XmlSchema schema) |
private org.w3c.dom.Element |
constructFacet(XmlSchemaFacet facetObj,
org.w3c.dom.Document doc,
XmlSchema schema,
java.lang.String tagName) |
private org.w3c.dom.Element |
createNewElement(org.w3c.dom.Document document,
java.lang.String localName,
java.lang.String prefix,
java.lang.String namespace) |
ExtensionRegistry |
getExtReg()
Get the registry of extensions for this serializer.
|
private static java.lang.String[] |
getParts(java.lang.String name) |
private void |
processExtensibilityComponents(XmlSchemaObject schemaObject,
org.w3c.dom.Element parentElement)
A generic method to process the extra attributes and the extra elements present within the schema.
|
private java.lang.String |
resolveQName(javax.xml.namespace.QName names,
XmlSchema schemaObj)
will search whether the prefix is available in global hash table, if it is there than append the prefix
to the element name.
|
(package private) org.w3c.dom.Element |
serializeAll(org.w3c.dom.Document doc,
XmlSchemaAll allObj,
XmlSchema schema)
Serialize an 'all' item.
|
(package private) org.w3c.dom.Element |
serializeAnnotation(org.w3c.dom.Document doc,
XmlSchemaAnnotation annotationObj,
XmlSchema schema)
********************************************************************* Element
serializeAnnotation(Document doc, XmlSchemaAnnotation annotationObj, XmlSchema schema)
Each member of complex type will be appended and pass the element created.
|
(package private) org.w3c.dom.Element |
serializeAny(org.w3c.dom.Document doc,
XmlSchemaAny anyObj,
XmlSchema schema)
********************************************************************* Element serializeAny(Document
doc, XmlSchemaAny anyObj, XmlSchema schema)
Each member of complex type will be appended and pass the element created.
|
(package private) org.w3c.dom.Element |
serializeAnyAttribute(org.w3c.dom.Document doc,
XmlSchemaAnyAttribute anyAttributeObj,
XmlSchema schema)
********************************************************************* Element
serializeAnyAttribute(Document doc, XmlSchemaAnyAttribute anyAttributeObj, XmlSchema schema)
Each member of complex type will be appended and pass the element created.
|
(package private) org.w3c.dom.Element |
serializeAppInfo(org.w3c.dom.Document doc,
XmlSchemaAppInfo appInfoObj,
XmlSchema schema)
********************************************************************* Element serializeAppInfo(Document
doc,XmlSchemaAppInfo appInfoObj, XmlSchema schema)
Each member of complex type will be appended and pass the element created.
|
(package private) org.w3c.dom.Element |
serializeAttribute(org.w3c.dom.Document doc,
XmlSchemaAttribute attributeObj,
XmlSchema schema)
********************************************************************* Element
serializeAttribute(Document doc, XmlSchemaAttribute attributeObj, XmlSchema schema) throws
XmlSchemaSerializerException{
Each member of complex type will be appended and pass the element created.
|
(package private) org.w3c.dom.Element |
serializeAttributeGroup(org.w3c.dom.Document doc,
XmlSchemaAttributeGroup attributeGroupObj,
XmlSchema schema)
********************************************************************* Element
serializeAttributeGroup(Document doc, XmlSchemaAttributeGroup attributeGroupObj, XmlSchema schema)
throws XmlSchemaSerializerException{
Each member of complex type will be appended and pass the element created.
|
(package private) org.w3c.dom.Element |
serializeAttributeGroupRef(org.w3c.dom.Document doc,
XmlSchemaAttributeGroupRef attributeGroupObj,
XmlSchema schema)
********************************************************************* Element
serializeAttributeGroupRef(Document doc, XmlSchemaAttributeGroupRef attributeGroupObj, XmlSchema
schema) throws XmlSchemaSerializerException
Each member of complex type will be appended and pass the element created.
|
(package private) org.w3c.dom.Element |
serializeChoice(org.w3c.dom.Document doc,
XmlSchemaChoice choiceObj,
XmlSchema schema)
********************************************************************* Element serializeChoice(Document
doc, XmlSchemaChoice choiceObj, XmlSchema schema) throws XmlSchemaSerializerException{
Each member of complex type will be appended and pass the element created.
|
(package private) org.w3c.dom.Element |
serializeComplexContent(org.w3c.dom.Document doc,
XmlSchemaComplexContent complexContentObj,
XmlSchema schema)
********************************************************************* Element
serializeComplexContent(Document doc, XmlSchemaComplexContent complexContentObj, XmlSchema schema)
throws XmlSchemaSerializerException{
Each member of complex type will be appended and pass the element created.
|
(package private) org.w3c.dom.Element |
serializeComplexContentExtension(org.w3c.dom.Document doc,
XmlSchemaComplexContentExtension extensionObj,
XmlSchema schema)
********************************************************************* Element
serializeComplexContentExtension(Document doc, XmlSchemaComplexContentExtension extensionObj, XmlSchema
schema) throws XmlSchemaSerializerException{
Each member of complex type will be appended and pass the element created.
|
(package private) org.w3c.dom.Element |
serializeComplexContentRestriction(org.w3c.dom.Document doc,
XmlSchemaComplexContentRestriction restrictionObj,
XmlSchema schema)
********************************************************************* Element
serializeComplexContentRestriction(Document doc, XmlSchemaComplexContentRestriction restrictionObj,
XmlSchema schema) throws XmlSchemaSerializerException{
Each member of complex type will be appended and pass the element created.
|
(package private) org.w3c.dom.Element |
serializeComplexType(org.w3c.dom.Document doc,
XmlSchemaComplexType complexTypeObj,
XmlSchema schema)
********************************************************************* Element
serializeComplexType(Document doc, XmlSchemaComplexType complexTypeObj, XmlSchema schema) throws
XmlSchemaSerializerException{
Each member of complex type will be appended and pass the element created.
|
(package private) org.w3c.dom.Element |
serializeDocumentation(org.w3c.dom.Document doc,
XmlSchemaDocumentation documentationObj,
XmlSchema schema)
********************************************************************* Element
serializeDocumentation(Document doc,XmlSchemaDocumentation documentationObj, XmlSchema schema){
Each member of complex type will be appended and pass the element created.
|
(package private) org.w3c.dom.Element |
serializeElement(org.w3c.dom.Document doc,
XmlSchemaElement elementObj,
XmlSchema schema)
********************************************************************* Element serializeElement(Document
doc, XmlSchemaElement elementObj, XmlSchema schema) throws XmlSchemaSerializerException
Each member of Element will be appended and pass the element created.
|
(package private) org.w3c.dom.Element |
serializeFacet(org.w3c.dom.Document doc,
XmlSchemaFacet facetObj,
XmlSchema schema)
********************************************************************* Element serializeFacet(Document
doc, XmlSchemaFacet facetObj, XmlSchema schema) throws XmlSchemaSerializerException{
detect what type of facet and cass appropriatelly, construct the element and pass it.
|
(package private) org.w3c.dom.Element |
serializeField(org.w3c.dom.Document doc,
XmlSchemaXPath fieldObj,
XmlSchema schema)
********************************************************************* Element serializeField(Document
doc, XmlSchemaXPath fieldObj, XmlSchema schema) throws XmlSchemaSerializerException
Each member of complex type will be appended and pass the element created.
|
(package private) org.w3c.dom.Element |
serializeGroup(org.w3c.dom.Document doc,
XmlSchemaGroup groupObj,
XmlSchema schema)
********************************************************************* Element serializeGroup(Document
doc, XmlSchemaGroup groupObj, XmlSchema schema) throws XmlSchemaSerializerException{
Each member of complex type will be appended and pass the element created.
|
(package private) org.w3c.dom.Element |
serializeGroupRef(org.w3c.dom.Document doc,
XmlSchemaGroupRef groupRefObj,
XmlSchema schema)
********************************************************************* Element
serializeGroupRef(Document doc, XmlSchemaGroupRef groupRefObj, XmlSchema schema) throws
XmlSchemaSerializerException{
Each member of complex type will be appended and pass the element created.
|
(package private) org.w3c.dom.Element |
serializeIdentityConstraint(org.w3c.dom.Document doc,
XmlSchemaIdentityConstraint constraintObj,
XmlSchema schema)
********************************************************************* Element
serializeIdentityConstraint(Document doc, XmlSchemaIdentityConstraint constraintObj, XmlSchema schema)
throws XmlSchemaSerializerException{
Each member of complex type will be appended and pass the element created.
|
(package private) org.w3c.dom.Element |
serializeImport(org.w3c.dom.Document doc,
XmlSchemaImport importObj,
XmlSchema schema,
boolean serializeIncluded)
********************************************************************* Element serializeImport(Document
doc, XmlSchemaImport importObj, XmlSchema schema)throws XmlSchemaSerializerException
Add each of the attribute of XmlSchemaImport obj into import Element Then serialize schema that is
included by this import.
|
(package private) org.w3c.dom.Element |
serializeInclude(org.w3c.dom.Document doc,
XmlSchemaInclude includeObj,
XmlSchema schema,
boolean serializeIncluded)
********************************************************************* Element serializeInclude(Document
doc, XmlSchemaInclude includeObj, XmlSchema schema)throws XmlSchemaSerializerException
set appropriate attribute as per this object attribute availability.
|
private void |
serializeMaxMinOccurs(XmlSchemaParticle particle,
org.w3c.dom.Element element)
A common method to serialize the max/min occurs
|
(package private) org.w3c.dom.Element |
serializeRedefine(org.w3c.dom.Document doc,
XmlSchemaRedefine redefineObj,
XmlSchema schema)
********************************************************************* Element
serializeRedefine(Document doc, XmlSchemaRedefine redefineObj, XmlSchema schema)throws
XmlSchemaSerializerException
Add each of the attribute of XmlSchemaImport obj into import Element Then serialize schema that is
included by this import.
|
org.w3c.dom.Document[] |
serializeSchema(XmlSchema schemaObj,
boolean serializeIncluded)
Serialize an entire schema, returning an array of DOM Documents, one per XSL file.
|
private void |
serializeSchemaChild(java.util.List<XmlSchemaObject> items,
org.w3c.dom.Element serializedSchema,
org.w3c.dom.Document serializedSchemaDocs,
XmlSchema schemaObj,
boolean serializeIncluded) |
(package private) org.w3c.dom.Document[] |
serializeSchemaElement(XmlSchema schemaObj,
boolean serializeIncluded) |
(package private) org.w3c.dom.Element |
serializeSelector(org.w3c.dom.Document doc,
XmlSchemaXPath selectorObj,
XmlSchema schema)
********************************************************************* Element
serializeSelector(Document doc, XmlSchemaXPath selectorObj, XmlSchema schema) throws
XmlSchemaSerializerException{
Each member of complex type will be appended and pass the element created.
|
(package private) org.w3c.dom.Element |
serializeSequence(org.w3c.dom.Document doc,
XmlSchemaSequence sequenceObj,
XmlSchema schema)
********************************************************************* Element
serializeSequence(Document doc, XmlSchemaSequence sequenceObj, XmlSchema schema)throws
XmlSchemaSerializerException{
Each member of complex type will be appended and pass the element created.
|
(package private) org.w3c.dom.Element |
serializeSimpleContent(org.w3c.dom.Document doc,
XmlSchemaSimpleContent simpleContentObj,
XmlSchema schema)
********************************************************************* Element
serializeSimpleContent(Document doc, XmlSchemaSimpleContent simpleContentObj, XmlSchema schema) throws
XmlSchemaSerializerException{
Each member of complex type will be appended and pass the element created.
|
(package private) org.w3c.dom.Element |
serializeSimpleContentExtension(org.w3c.dom.Document doc,
XmlSchemaSimpleContentExtension extensionObj,
XmlSchema schema)
********************************************************************* Element
serializeSimpleContentExtension(Document doc, XmlSchemaSimpleContentExtension extensionObj, XmlSchema
schema) throws XmlSchemaSerializerException{
Each member of complex type will be appended and pass the element created.
|
(package private) org.w3c.dom.Element |
serializeSimpleContentRestriction(org.w3c.dom.Document doc,
XmlSchemaSimpleContentRestriction restrictionObj,
XmlSchema schema)
********************************************************************* Element
serializeSimpleContentRestriction(Document doc, XmlSchemaSimpleContentRestriction restrictionObj,
XmlSchema schema) throws XmlSchemaSerializerException{
Each member of complex type will be appended and pass the element created.
|
(package private) org.w3c.dom.Element |
serializeSimpleType(org.w3c.dom.Document doc,
XmlSchemaSimpleType simpleTypeObj,
XmlSchema schema)
********************************************************************* Element
serializeSimpleType(Document doc, XmlSchemaSimpleType simpleTypeObj, XmlSchema schema) throws
XmlSchemaSerializerException{
Each member of simple type will be appended and pass the element created.
|
(package private) org.w3c.dom.Element |
serializeSimpleTypeList(org.w3c.dom.Document doc,
XmlSchemaSimpleTypeList listObj,
XmlSchema schema)
********************************************************************* Element
serializeSimpleTypeList(Document doc, XmlSchemaSimpleTypeList listObj, XmlSchema schema) throws
XmlSchemaSerializerException{
Each member of complex type will be appended and pass the element created.
|
(package private) org.w3c.dom.Element |
serializeSimpleTypeRestriction(org.w3c.dom.Document doc,
XmlSchemaSimpleTypeRestriction restrictionObj,
XmlSchema schema)
********************************************************************* Element
serializeSimpleTypeRestriction(Document doc, XmlSchemaSimpleTypeRestriction restrictionObj, XmlSchema
schema) throws XmlSchemaSerializerException{
Each member of simple type will be appended and pass the element created.
|
(package private) org.w3c.dom.Element |
serializeSimpleTypeUnion(org.w3c.dom.Document doc,
XmlSchemaSimpleTypeUnion unionObj,
XmlSchema schema)
********************************************************************* Element
serializeSimpleTypeUnion(Document doc, XmlSchemaSimpleTypeUnion unionObj, XmlSchema schema) throws
XmlSchemaSerializerException{
Each member of complex type will be appended and pass the element created.
|
void |
setExtReg(ExtensionRegistry extReg)
Set the registry of extensions for this serializer.
|
(package private) void |
setupAttr(org.w3c.dom.Document doc,
java.util.List<XmlSchemaAttributeOrGroupRef> attrColl,
XmlSchema schema,
org.w3c.dom.Element container) |
private org.w3c.dom.Element |
setupNamespaces(org.w3c.dom.Document schemaDocs,
XmlSchema schemaObj)
Set up
|
public static final java.lang.String XSD_NAMESPACE
private static final java.lang.String XMLNS_NAMESPACE_URI
java.lang.String xsdPrefix
java.util.List<org.w3c.dom.Document> docs
org.w3c.dom.Element schemaElement
private ExtensionRegistry extReg
private java.util.Map<java.lang.String,java.lang.String> schemaNamespace
private static java.lang.String[] getParts(java.lang.String name)
public ExtensionRegistry getExtReg()
public org.w3c.dom.Document[] serializeSchema(XmlSchema schemaObj, boolean serializeIncluded) throws XmlSchemaSerializer.XmlSchemaSerializerException
XmlSchema objects to represent them, they will
be returned as additional documents in the array.schemaObj - The XML Schema.serializeIncluded - whether to create DOM trees for any included or imported schemas.XmlSchemaSerializer.XmlSchemaSerializerExceptionpublic void setExtReg(ExtensionRegistry extReg)
extReg - the registry.org.w3c.dom.Element serializeAll(org.w3c.dom.Document doc,
XmlSchemaAll allObj,
XmlSchema schema)
throws XmlSchemaSerializer.XmlSchemaSerializerException
doc - allObj - schema - XmlSchemaSerializer.XmlSchemaSerializerExceptionorg.w3c.dom.Element serializeAnnotation(org.w3c.dom.Document doc,
XmlSchemaAnnotation annotationObj,
XmlSchema schema)
org.w3c.dom.Element serializeAny(org.w3c.dom.Document doc,
XmlSchemaAny anyObj,
XmlSchema schema)
org.w3c.dom.Element serializeAnyAttribute(org.w3c.dom.Document doc,
XmlSchemaAnyAttribute anyAttributeObj,
XmlSchema schema)
org.w3c.dom.Element serializeAppInfo(org.w3c.dom.Document doc,
XmlSchemaAppInfo appInfoObj,
XmlSchema schema)
org.w3c.dom.Element serializeAttribute(org.w3c.dom.Document doc,
XmlSchemaAttribute attributeObj,
XmlSchema schema)
throws XmlSchemaSerializer.XmlSchemaSerializerException
org.w3c.dom.Element serializeAttributeGroup(org.w3c.dom.Document doc,
XmlSchemaAttributeGroup attributeGroupObj,
XmlSchema schema)
throws XmlSchemaSerializer.XmlSchemaSerializerException
org.w3c.dom.Element serializeAttributeGroupRef(org.w3c.dom.Document doc,
XmlSchemaAttributeGroupRef attributeGroupObj,
XmlSchema schema)
throws XmlSchemaSerializer.XmlSchemaSerializerException
org.w3c.dom.Element serializeChoice(org.w3c.dom.Document doc,
XmlSchemaChoice choiceObj,
XmlSchema schema)
throws XmlSchemaSerializer.XmlSchemaSerializerException
org.w3c.dom.Element serializeComplexContent(org.w3c.dom.Document doc,
XmlSchemaComplexContent complexContentObj,
XmlSchema schema)
throws XmlSchemaSerializer.XmlSchemaSerializerException
org.w3c.dom.Element serializeComplexContentExtension(org.w3c.dom.Document doc,
XmlSchemaComplexContentExtension extensionObj,
XmlSchema schema)
throws XmlSchemaSerializer.XmlSchemaSerializerException
org.w3c.dom.Element serializeComplexContentRestriction(org.w3c.dom.Document doc,
XmlSchemaComplexContentRestriction restrictionObj,
XmlSchema schema)
throws XmlSchemaSerializer.XmlSchemaSerializerException
org.w3c.dom.Element serializeComplexType(org.w3c.dom.Document doc,
XmlSchemaComplexType complexTypeObj,
XmlSchema schema)
throws XmlSchemaSerializer.XmlSchemaSerializerException
org.w3c.dom.Element serializeDocumentation(org.w3c.dom.Document doc,
XmlSchemaDocumentation documentationObj,
XmlSchema schema)
org.w3c.dom.Element serializeElement(org.w3c.dom.Document doc,
XmlSchemaElement elementObj,
XmlSchema schema)
throws XmlSchemaSerializer.XmlSchemaSerializerException
org.w3c.dom.Element serializeFacet(org.w3c.dom.Document doc,
XmlSchemaFacet facetObj,
XmlSchema schema)
throws XmlSchemaSerializer.XmlSchemaSerializerException
org.w3c.dom.Element serializeField(org.w3c.dom.Document doc,
XmlSchemaXPath fieldObj,
XmlSchema schema)
throws XmlSchemaSerializer.XmlSchemaSerializerException
org.w3c.dom.Element serializeGroup(org.w3c.dom.Document doc,
XmlSchemaGroup groupObj,
XmlSchema schema)
throws XmlSchemaSerializer.XmlSchemaSerializerException
org.w3c.dom.Element serializeGroupRef(org.w3c.dom.Document doc,
XmlSchemaGroupRef groupRefObj,
XmlSchema schema)
throws XmlSchemaSerializer.XmlSchemaSerializerException
org.w3c.dom.Element serializeIdentityConstraint(org.w3c.dom.Document doc,
XmlSchemaIdentityConstraint constraintObj,
XmlSchema schema)
throws XmlSchemaSerializer.XmlSchemaSerializerException
org.w3c.dom.Element serializeImport(org.w3c.dom.Document doc,
XmlSchemaImport importObj,
XmlSchema schema,
boolean serializeIncluded)
throws XmlSchemaSerializer.XmlSchemaSerializerException
org.w3c.dom.Element serializeInclude(org.w3c.dom.Document doc,
XmlSchemaInclude includeObj,
XmlSchema schema,
boolean serializeIncluded)
throws XmlSchemaSerializer.XmlSchemaSerializerException
org.w3c.dom.Element serializeRedefine(org.w3c.dom.Document doc,
XmlSchemaRedefine redefineObj,
XmlSchema schema)
throws XmlSchemaSerializer.XmlSchemaSerializerException
org.w3c.dom.Document[] serializeSchemaElement(XmlSchema schemaObj, boolean serializeIncluded) throws XmlSchemaSerializer.XmlSchemaSerializerException
org.w3c.dom.Element serializeSelector(org.w3c.dom.Document doc,
XmlSchemaXPath selectorObj,
XmlSchema schema)
throws XmlSchemaSerializer.XmlSchemaSerializerException
org.w3c.dom.Element serializeSequence(org.w3c.dom.Document doc,
XmlSchemaSequence sequenceObj,
XmlSchema schema)
throws XmlSchemaSerializer.XmlSchemaSerializerException
org.w3c.dom.Element serializeSimpleContent(org.w3c.dom.Document doc,
XmlSchemaSimpleContent simpleContentObj,
XmlSchema schema)
throws XmlSchemaSerializer.XmlSchemaSerializerException
org.w3c.dom.Element serializeSimpleContentExtension(org.w3c.dom.Document doc,
XmlSchemaSimpleContentExtension extensionObj,
XmlSchema schema)
throws XmlSchemaSerializer.XmlSchemaSerializerException
org.w3c.dom.Element serializeSimpleContentRestriction(org.w3c.dom.Document doc,
XmlSchemaSimpleContentRestriction restrictionObj,
XmlSchema schema)
throws XmlSchemaSerializer.XmlSchemaSerializerException
org.w3c.dom.Element serializeSimpleType(org.w3c.dom.Document doc,
XmlSchemaSimpleType simpleTypeObj,
XmlSchema schema)
throws XmlSchemaSerializer.XmlSchemaSerializerException
org.w3c.dom.Element serializeSimpleTypeList(org.w3c.dom.Document doc,
XmlSchemaSimpleTypeList listObj,
XmlSchema schema)
throws XmlSchemaSerializer.XmlSchemaSerializerException
org.w3c.dom.Element serializeSimpleTypeRestriction(org.w3c.dom.Document doc,
XmlSchemaSimpleTypeRestriction restrictionObj,
XmlSchema schema)
throws XmlSchemaSerializer.XmlSchemaSerializerException
org.w3c.dom.Element serializeSimpleTypeUnion(org.w3c.dom.Document doc,
XmlSchemaSimpleTypeUnion unionObj,
XmlSchema schema)
throws XmlSchemaSerializer.XmlSchemaSerializerException
void setupAttr(org.w3c.dom.Document doc,
java.util.List<XmlSchemaAttributeOrGroupRef> attrColl,
XmlSchema schema,
org.w3c.dom.Element container)
throws XmlSchemaSerializer.XmlSchemaSerializerException
private void appendElement(org.w3c.dom.Document doc,
org.w3c.dom.Element parent,
org.w3c.dom.Node children,
XmlSchema schema)
private org.w3c.dom.Element constructFacet(XmlSchemaFacet facetObj, org.w3c.dom.Document doc, XmlSchema schema, java.lang.String tagName)
private org.w3c.dom.Element createNewElement(org.w3c.dom.Document document,
java.lang.String localName,
java.lang.String prefix,
java.lang.String namespace)
private void processExtensibilityComponents(XmlSchemaObject schemaObject, org.w3c.dom.Element parentElement)
schemaObject - parentElement - private java.lang.String resolveQName(javax.xml.namespace.QName names,
XmlSchema schemaObj)
names - schemaObj - private void serializeMaxMinOccurs(XmlSchemaParticle particle, org.w3c.dom.Element element)
particle - element - private void serializeSchemaChild(java.util.List<XmlSchemaObject> items, org.w3c.dom.Element serializedSchema, org.w3c.dom.Document serializedSchemaDocs, XmlSchema schemaObj, boolean serializeIncluded) throws XmlSchemaSerializer.XmlSchemaSerializerException
private org.w3c.dom.Element setupNamespaces(org.w3c.dom.Document schemaDocs,
XmlSchema schemaObj)