XMLSchema
index
/home/groups/p/py/pywebsvcs/src/wstools/XMLSchema.py

# Copyright (c) 2003, The Regents of the University of California,
# through Lawrence Berkeley National Laboratory (subject to receipt of
# any required approvals from the U.S. Dept. of Energy).  All rights
# reserved. 
#
# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.

 
Modules
       
sys
types
warnings
weakref

 
Classes
       
AttributeGroupMarker
AttributeMarker
ComplexMarker
DOMAdapterInterface
DOMAdapter
DeclarationMarker
DefinitionMarker
ElementMarker
exceptions.Exception
NoSchemaLocationWarning
SchemaError
ExtensionMarker
ListMarker
LocalMarker
MarkerInterface
ModelGroupMarker
AllMarker
ChoiceMarker
SequenceMarker
Redefine
ReferenceMarker
RestrictionMarker
SchemaReader
SimpleMarker
UnionMarker
WildCardMarker
XMLBase
XMLSchemaComponent(XMLBase, MarkerInterface)
All(XMLSchemaComponent, AllMarker)
Annotation
AttributeDeclaration(XMLSchemaComponent, AttributeMarker, DeclarationMarker)
LocalAttributeDeclaration(AttributeDeclaration, AttributeMarker, LocalMarker, DeclarationMarker)
AttributeGroupDefinition(XMLSchemaComponent, AttributeGroupMarker, DefinitionMarker)
AttributeGroupReference(XMLSchemaComponent, AttributeGroupMarker, ReferenceMarker)
AttributeReference(XMLSchemaComponent, AttributeMarker, ReferenceMarker)
AttributeWildCard(XMLSchemaComponent, AttributeMarker, DeclarationMarker, WildCardMarker)
Choice(XMLSchemaComponent, ChoiceMarker)
ComplexType(XMLSchemaComponent, DefinitionMarker, ComplexMarker)
LocalComplexType(ComplexType, LocalMarker)
ElementDeclaration(XMLSchemaComponent, ElementMarker, DeclarationMarker)
LocalElementDeclaration(ElementDeclaration, LocalMarker)
ElementWildCard(LocalElementDeclaration, WildCardMarker)
ElementReference(XMLSchemaComponent, ElementMarker, ReferenceMarker)
IdentityConstrants
Key
KeyRef
Unique
ModelGroupDefinition(XMLSchemaComponent, ModelGroupMarker, DefinitionMarker)
ModelGroupReference(XMLSchemaComponent, ModelGroupMarker, ReferenceMarker)
Notation
Sequence(XMLSchemaComponent, SequenceMarker)
SimpleType(XMLSchemaComponent, DefinitionMarker, SimpleMarker)
AnonymousSimpleType(SimpleType, SimpleMarker, LocalMarker)
WSDLToolsAdapter
XMLSchema
XMLSchemaFake
__builtin__.tuple(__builtin__.object)
TypeDescriptionComponent

 
class All(XMLSchemaComponent, AllMarker)
    <all>
parents: 
    complexType, extension, restriction, group
attributes:
    id -- ID
    minOccurs -- '0' | '1', 1
    maxOccurs -- '1', 1
 
contents:
    annotation?, element*
 
 
Method resolution order:
All
XMLSchemaComponent
XMLBase
MarkerInterface
AllMarker
ModelGroupMarker

Methods defined here:
__init__(self, parent)
fromDom(self, node)

Data and other attributes defined here:
attributes = {'id': None, 'maxOccurs': '1', 'minOccurs': '1'}
contents = {'xsd': ['annotation', 'element']}
tag = 'all'

Methods inherited from XMLSchemaComponent:
getAttribute(self, attribute)
return requested attribute value or None
getAttributeDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeGroup(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeName(self)
return attribute name or None
getAttributeQName(self, attribute)
return requested attribute value as (namespace,name) or None
getContents(self, node)
retrieve xsd contents
getElementDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
getItemTrace(self)
Returns a node trace up to the <schema> item.
getModelGroup(self, attribute)
attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
getQNameAttribute(self, collection, attribute)
returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
getSchemaItem(self, collection, namespace, name)
returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
 
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
getTargetNamespace(self)
return targetNamespace
getTypeDefinition(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getXMLNS(self, prefix=None)
deference prefix or by default xmlns, returns namespace.
setAttributes(self, node)
Sets up attribute dictionary, checks for required attributes and 
sets default attribute values. attr is for default attribute values 
determined at runtime.
 
structure of attributes dictionary
    ['xmlns'][xmlns_key] --  xmlns namespace
    ['xmlns'][prefix] --  declared namespace prefix 
    [namespace][prefix] -- attributes declared in a namespace
    [attribute] -- attributes w/o prefix, default namespaces do
        not directly apply to attributes, ie Name can't collide 
        with QName.

Data and other attributes inherited from XMLSchemaComponent:
required = []
xml = 'xml'
xmlns = 'xmlns'
xmlns_key = ''

Methods inherited from XMLBase:
__str__(self)

Methods inherited from MarkerInterface:
isAll(self)
isAttribute(self)
isAttributeGroup(self)
isChoice(self)
isComplex(self)
isDeclaration(self)
isDefinition(self)
isElement(self)
isExtension(self)
isList(self)
isLocal(self)
isModelGroup(self)
isReference(self)
isRestriction(self)
isSequence(self)
isSimple(self)
isUnion(self)
isWildCard(self)

 
class AllMarker(ModelGroupMarker)
    marker for all model group
 
 

 
class Annotation(XMLSchemaComponent)
    <annotation>
parent:
    all,any,anyAttribute,attribute,attributeGroup,choice,complexContent,
    complexType,element,extension,field,group,import,include,key,keyref,
    list,notation,redefine,restriction,schema,selector,simpleContent,
    simpleType,union,unique
attributes:
    id -- ID
contents:
    (documentation | appinfo)*
 
 
Method resolution order:
Annotation
XMLSchemaComponent
XMLBase
MarkerInterface

Methods defined here:
__init__(self, parent)
fromDom(self, node)

Data and other attributes defined here:
Appinfo = <class XMLSchema.Appinfo>
<appinfo>
parent:
    annotation
attributes:
    source, anyURI
contents:
    mixed, any
Documentation = <class XMLSchema.Documentation>
<documentation>
parent:
    annotation
attributes:
    source, anyURI
    xml:lang, language
contents:
    mixed, any
attributes = {'id': None}
contents = {'xsd': ('documentation', 'appinfo')}
tag = 'annotation'

Methods inherited from XMLSchemaComponent:
getAttribute(self, attribute)
return requested attribute value or None
getAttributeDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeGroup(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeName(self)
return attribute name or None
getAttributeQName(self, attribute)
return requested attribute value as (namespace,name) or None
getContents(self, node)
retrieve xsd contents
getElementDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
getItemTrace(self)
Returns a node trace up to the <schema> item.
getModelGroup(self, attribute)
attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
getQNameAttribute(self, collection, attribute)
returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
getSchemaItem(self, collection, namespace, name)
returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
 
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
getTargetNamespace(self)
return targetNamespace
getTypeDefinition(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getXMLNS(self, prefix=None)
deference prefix or by default xmlns, returns namespace.
setAttributes(self, node)
Sets up attribute dictionary, checks for required attributes and 
sets default attribute values. attr is for default attribute values 
determined at runtime.
 
structure of attributes dictionary
    ['xmlns'][xmlns_key] --  xmlns namespace
    ['xmlns'][prefix] --  declared namespace prefix 
    [namespace][prefix] -- attributes declared in a namespace
    [attribute] -- attributes w/o prefix, default namespaces do
        not directly apply to attributes, ie Name can't collide 
        with QName.

Data and other attributes inherited from XMLSchemaComponent:
required = []
xml = 'xml'
xmlns = 'xmlns'
xmlns_key = ''

Methods inherited from XMLBase:
__str__(self)

Methods inherited from MarkerInterface:
isAll(self)
isAttribute(self)
isAttributeGroup(self)
isChoice(self)
isComplex(self)
isDeclaration(self)
isDefinition(self)
isElement(self)
isExtension(self)
isList(self)
isLocal(self)
isModelGroup(self)
isReference(self)
isRestriction(self)
isSequence(self)
isSimple(self)
isUnion(self)
isWildCard(self)

 
class AnonymousSimpleType(SimpleType, SimpleMarker, LocalMarker)
    <simpleType>
parents:
    attribute, element, list, restriction, union
attributes:
    id -- ID
 
contents:
    annotation?, (restriction | list | union)
 
 
Method resolution order:
AnonymousSimpleType
SimpleType
XMLSchemaComponent
XMLBase
MarkerInterface
DefinitionMarker
SimpleMarker
LocalMarker

Data and other attributes defined here:
attributes = {'id': None}
required = []
tag = 'simpleType'

Methods inherited from SimpleType:
__init__(self, parent)
fromDom(self, node)
getElementDeclaration(self, attribute)
getTypeDefinition(self, attribute)

Data and other attributes inherited from SimpleType:
List = <class XMLSchema.List>
<list>
parents:
    simpleType
attributes:
    id -- ID
    itemType -- QName, required or simpleType child.
 
contents:
    annotation?, simpleType?
Restriction = <class XMLSchema.Restriction>
<restriction base>
parents:
    simpleType
attributes:
    id -- ID
    base -- QName, required or simpleType child
 
contents:
    annotation?, simpleType?, (enumeration | length | 
    maxExclusive | maxInclusive | maxLength | minExclusive | 
    minInclusive | minLength | pattern | fractionDigits | 
    totalDigits | whiteSpace)*
Union = <class XMLSchema.Union>
<union>
parents:
    simpleType
attributes:
    id -- ID
    memberTypes -- list of QNames, required or simpleType child.
 
contents:
    annotation?, simpleType*
contents = {'xsd': ['annotation', 'restriction', 'list', 'union']}

Methods inherited from XMLSchemaComponent:
getAttribute(self, attribute)
return requested attribute value or None
getAttributeDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeGroup(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeName(self)
return attribute name or None
getAttributeQName(self, attribute)
return requested attribute value as (namespace,name) or None
getContents(self, node)
retrieve xsd contents
getItemTrace(self)
Returns a node trace up to the <schema> item.
getModelGroup(self, attribute)
attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
getQNameAttribute(self, collection, attribute)
returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
getSchemaItem(self, collection, namespace, name)
returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
 
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
getTargetNamespace(self)
return targetNamespace
getXMLNS(self, prefix=None)
deference prefix or by default xmlns, returns namespace.
setAttributes(self, node)
Sets up attribute dictionary, checks for required attributes and 
sets default attribute values. attr is for default attribute values 
determined at runtime.
 
structure of attributes dictionary
    ['xmlns'][xmlns_key] --  xmlns namespace
    ['xmlns'][prefix] --  declared namespace prefix 
    [namespace][prefix] -- attributes declared in a namespace
    [attribute] -- attributes w/o prefix, default namespaces do
        not directly apply to attributes, ie Name can't collide 
        with QName.

Data and other attributes inherited from XMLSchemaComponent:
xml = 'xml'
xmlns = 'xmlns'
xmlns_key = ''

Methods inherited from XMLBase:
__str__(self)

Methods inherited from MarkerInterface:
isAll(self)
isAttribute(self)
isAttributeGroup(self)
isChoice(self)
isComplex(self)
isDeclaration(self)
isDefinition(self)
isElement(self)
isExtension(self)
isList(self)
isLocal(self)
isModelGroup(self)
isReference(self)
isRestriction(self)
isSequence(self)
isSimple(self)
isUnion(self)
isWildCard(self)

 
class AttributeDeclaration(XMLSchemaComponent, AttributeMarker, DeclarationMarker)
    <attribute name>
parent: 
    schema
attributes:
    id -- ID
    name -- NCName, required
    type -- QName
    default -- string
    fixed -- string
contents:
    annotation?, simpleType?
 
 
Method resolution order:
AttributeDeclaration
XMLSchemaComponent
XMLBase
MarkerInterface
AttributeMarker
DeclarationMarker

Methods defined here:
__init__(self, parent)
fromDom(self, node)
No list or union support

Data and other attributes defined here:
attributes = {'default': None, 'fixed': None, 'id': None, 'name': None, 'type': None}
contents = {'xsd': ['annotation', 'simpleType']}
required = ['name']
tag = 'attribute'

Methods inherited from XMLSchemaComponent:
getAttribute(self, attribute)
return requested attribute value or None
getAttributeDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeGroup(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeName(self)
return attribute name or None
getAttributeQName(self, attribute)
return requested attribute value as (namespace,name) or None
getContents(self, node)
retrieve xsd contents
getElementDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
getItemTrace(self)
Returns a node trace up to the <schema> item.
getModelGroup(self, attribute)
attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
getQNameAttribute(self, collection, attribute)
returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
getSchemaItem(self, collection, namespace, name)
returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
 
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
getTargetNamespace(self)
return targetNamespace
getTypeDefinition(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getXMLNS(self, prefix=None)
deference prefix or by default xmlns, returns namespace.
setAttributes(self, node)
Sets up attribute dictionary, checks for required attributes and 
sets default attribute values. attr is for default attribute values 
determined at runtime.
 
structure of attributes dictionary
    ['xmlns'][xmlns_key] --  xmlns namespace
    ['xmlns'][prefix] --  declared namespace prefix 
    [namespace][prefix] -- attributes declared in a namespace
    [attribute] -- attributes w/o prefix, default namespaces do
        not directly apply to attributes, ie Name can't collide 
        with QName.

Data and other attributes inherited from XMLSchemaComponent:
xml = 'xml'
xmlns = 'xmlns'
xmlns_key = ''

Methods inherited from XMLBase:
__str__(self)

Methods inherited from MarkerInterface:
isAll(self)
isAttribute(self)
isAttributeGroup(self)
isChoice(self)
isComplex(self)
isDeclaration(self)
isDefinition(self)
isElement(self)
isExtension(self)
isList(self)
isLocal(self)
isModelGroup(self)
isReference(self)
isRestriction(self)
isSequence(self)
isSimple(self)
isUnion(self)
isWildCard(self)

 
class AttributeGroupDefinition(XMLSchemaComponent, AttributeGroupMarker, DefinitionMarker)
    <attributeGroup name>
parents: 
    schema, redefine
attributes:
    id -- ID
    name -- NCName,  required
contents:
    annotation?, (attribute | attributeGroup)*, anyAttribute?
 
 
Method resolution order:
AttributeGroupDefinition
XMLSchemaComponent
XMLBase
MarkerInterface
AttributeGroupMarker
DefinitionMarker

Methods defined here:
__init__(self, parent)
fromDom(self, node)
getAttributeContent(self)

Data and other attributes defined here:
attributes = {'id': None, 'name': None}
contents = {'xsd': ['annotation', 'attribute', 'attributeGroup', 'anyAttribute']}
required = ['name']
tag = 'attributeGroup'

Methods inherited from XMLSchemaComponent:
getAttribute(self, attribute)
return requested attribute value or None
getAttributeDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeGroup(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeName(self)
return attribute name or None
getAttributeQName(self, attribute)
return requested attribute value as (namespace,name) or None
getContents(self, node)
retrieve xsd contents
getElementDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
getItemTrace(self)
Returns a node trace up to the <schema> item.
getModelGroup(self, attribute)
attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
getQNameAttribute(self, collection, attribute)
returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
getSchemaItem(self, collection, namespace, name)
returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
 
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
getTargetNamespace(self)
return targetNamespace
getTypeDefinition(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getXMLNS(self, prefix=None)
deference prefix or by default xmlns, returns namespace.
setAttributes(self, node)
Sets up attribute dictionary, checks for required attributes and 
sets default attribute values. attr is for default attribute values 
determined at runtime.
 
structure of attributes dictionary
    ['xmlns'][xmlns_key] --  xmlns namespace
    ['xmlns'][prefix] --  declared namespace prefix 
    [namespace][prefix] -- attributes declared in a namespace
    [attribute] -- attributes w/o prefix, default namespaces do
        not directly apply to attributes, ie Name can't collide 
        with QName.

Data and other attributes inherited from XMLSchemaComponent:
xml = 'xml'
xmlns = 'xmlns'
xmlns_key = ''

Methods inherited from XMLBase:
__str__(self)

Methods inherited from MarkerInterface:
isAll(self)
isAttribute(self)
isAttributeGroup(self)
isChoice(self)
isComplex(self)
isDeclaration(self)
isDefinition(self)
isElement(self)
isExtension(self)
isList(self)
isLocal(self)
isModelGroup(self)
isReference(self)
isRestriction(self)
isSequence(self)
isSimple(self)
isUnion(self)
isWildCard(self)

 
class AttributeGroupMarker
    marker for attribute groups
 
 

 
class AttributeGroupReference(XMLSchemaComponent, AttributeGroupMarker, ReferenceMarker)
    <attributeGroup ref>
parents: 
    complexType, restriction, extension, attributeGroup
attributes:
    id -- ID
    ref -- QName, required
contents:
    annotation?
 
 
Method resolution order:
AttributeGroupReference
XMLSchemaComponent
XMLBase
MarkerInterface
AttributeGroupMarker
ReferenceMarker

Methods defined here:
__init__(self, parent)
fromDom(self, node)
getAttributeGroup(self, attribute='ref')
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance

Data and other attributes defined here:
attributes = {'id': None, 'ref': None}
contents = {'xsd': ['annotation']}
required = ['ref']
tag = 'attributeGroup'

Methods inherited from XMLSchemaComponent:
getAttribute(self, attribute)
return requested attribute value or None
getAttributeDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeName(self)
return attribute name or None
getAttributeQName(self, attribute)
return requested attribute value as (namespace,name) or None
getContents(self, node)
retrieve xsd contents
getElementDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
getItemTrace(self)
Returns a node trace up to the <schema> item.
getModelGroup(self, attribute)
attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
getQNameAttribute(self, collection, attribute)
returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
getSchemaItem(self, collection, namespace, name)
returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
 
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
getTargetNamespace(self)
return targetNamespace
getTypeDefinition(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getXMLNS(self, prefix=None)
deference prefix or by default xmlns, returns namespace.
setAttributes(self, node)
Sets up attribute dictionary, checks for required attributes and 
sets default attribute values. attr is for default attribute values 
determined at runtime.
 
structure of attributes dictionary
    ['xmlns'][xmlns_key] --  xmlns namespace
    ['xmlns'][prefix] --  declared namespace prefix 
    [namespace][prefix] -- attributes declared in a namespace
    [attribute] -- attributes w/o prefix, default namespaces do
        not directly apply to attributes, ie Name can't collide 
        with QName.

Data and other attributes inherited from XMLSchemaComponent:
xml = 'xml'
xmlns = 'xmlns'
xmlns_key = ''

Methods inherited from XMLBase:
__str__(self)

Methods inherited from MarkerInterface:
isAll(self)
isAttribute(self)
isAttributeGroup(self)
isChoice(self)
isComplex(self)
isDeclaration(self)
isDefinition(self)
isElement(self)
isExtension(self)
isList(self)
isLocal(self)
isModelGroup(self)
isReference(self)
isRestriction(self)
isSequence(self)
isSimple(self)
isUnion(self)
isWildCard(self)

 
class AttributeMarker
    marker for attributes
 
 

 
class AttributeReference(XMLSchemaComponent, AttributeMarker, ReferenceMarker)
    <attribute ref>
parents: 
    complexType, restriction, extension, attributeGroup
attributes:
    id -- ID
    ref -- QName, required
    use -- ('optional' | 'prohibited' | 'required'), optional
    default -- string
    fixed -- string
contents:
    annotation?
 
 
Method resolution order:
AttributeReference
XMLSchemaComponent
XMLBase
MarkerInterface
AttributeMarker
ReferenceMarker

Methods defined here:
__init__(self, parent)
fromDom(self, node)
getAttributeDeclaration(self, attribute='ref')

Data and other attributes defined here:
attributes = {'default': None, 'fixed': None, 'id': None, 'ref': None, 'use': 'optional'}
contents = {'xsd': ['annotation']}
required = ['ref']
tag = 'attribute'

Methods inherited from XMLSchemaComponent:
getAttribute(self, attribute)
return requested attribute value or None
getAttributeGroup(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeName(self)
return attribute name or None
getAttributeQName(self, attribute)
return requested attribute value as (namespace,name) or None
getContents(self, node)
retrieve xsd contents
getElementDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
getItemTrace(self)
Returns a node trace up to the <schema> item.
getModelGroup(self, attribute)
attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
getQNameAttribute(self, collection, attribute)
returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
getSchemaItem(self, collection, namespace, name)
returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
 
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
getTargetNamespace(self)
return targetNamespace
getTypeDefinition(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getXMLNS(self, prefix=None)
deference prefix or by default xmlns, returns namespace.
setAttributes(self, node)
Sets up attribute dictionary, checks for required attributes and 
sets default attribute values. attr is for default attribute values 
determined at runtime.
 
structure of attributes dictionary
    ['xmlns'][xmlns_key] --  xmlns namespace
    ['xmlns'][prefix] --  declared namespace prefix 
    [namespace][prefix] -- attributes declared in a namespace
    [attribute] -- attributes w/o prefix, default namespaces do
        not directly apply to attributes, ie Name can't collide 
        with QName.

Data and other attributes inherited from XMLSchemaComponent:
xml = 'xml'
xmlns = 'xmlns'
xmlns_key = ''

Methods inherited from XMLBase:
__str__(self)

Methods inherited from MarkerInterface:
isAll(self)
isAttribute(self)
isAttributeGroup(self)
isChoice(self)
isComplex(self)
isDeclaration(self)
isDefinition(self)
isElement(self)
isExtension(self)
isList(self)
isLocal(self)
isModelGroup(self)
isReference(self)
isRestriction(self)
isSequence(self)
isSimple(self)
isUnion(self)
isWildCard(self)

 
class AttributeWildCard(XMLSchemaComponent, AttributeMarker, DeclarationMarker, WildCardMarker)
    <anyAttribute>
parents: 
    complexType, restriction, extension, attributeGroup
attributes:
    id -- ID
    namespace -- '##any' | '##other' | 
                 (anyURI* | '##targetNamespace' | '##local'), ##any
    processContents -- 'lax' | 'skip' | 'strict', strict
contents:
    annotation?
 
 
Method resolution order:
AttributeWildCard
XMLSchemaComponent
XMLBase
MarkerInterface
AttributeMarker
DeclarationMarker
WildCardMarker

Methods defined here:
__init__(self, parent)
fromDom(self, node)

Data and other attributes defined here:
attributes = {'id': None, 'namespace': '##any', 'processContents': 'strict'}
contents = {'xsd': ['annotation']}
tag = 'anyAttribute'

Methods inherited from XMLSchemaComponent:
getAttribute(self, attribute)
return requested attribute value or None
getAttributeDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeGroup(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeName(self)
return attribute name or None
getAttributeQName(self, attribute)
return requested attribute value as (namespace,name) or None
getContents(self, node)
retrieve xsd contents
getElementDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
getItemTrace(self)
Returns a node trace up to the <schema> item.
getModelGroup(self, attribute)
attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
getQNameAttribute(self, collection, attribute)
returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
getSchemaItem(self, collection, namespace, name)
returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
 
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
getTargetNamespace(self)
return targetNamespace
getTypeDefinition(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getXMLNS(self, prefix=None)
deference prefix or by default xmlns, returns namespace.
setAttributes(self, node)
Sets up attribute dictionary, checks for required attributes and 
sets default attribute values. attr is for default attribute values 
determined at runtime.
 
structure of attributes dictionary
    ['xmlns'][xmlns_key] --  xmlns namespace
    ['xmlns'][prefix] --  declared namespace prefix 
    [namespace][prefix] -- attributes declared in a namespace
    [attribute] -- attributes w/o prefix, default namespaces do
        not directly apply to attributes, ie Name can't collide 
        with QName.

Data and other attributes inherited from XMLSchemaComponent:
required = []
xml = 'xml'
xmlns = 'xmlns'
xmlns_key = ''

Methods inherited from XMLBase:
__str__(self)

Methods inherited from MarkerInterface:
isAll(self)
isAttribute(self)
isAttributeGroup(self)
isChoice(self)
isComplex(self)
isDeclaration(self)
isDefinition(self)
isElement(self)
isExtension(self)
isList(self)
isLocal(self)
isModelGroup(self)
isReference(self)
isRestriction(self)
isSequence(self)
isSimple(self)
isUnion(self)
isWildCard(self)

 
class Choice(XMLSchemaComponent, ChoiceMarker)
    <choice>
parents: 
    complexType, extension, restriction, group, choice, sequence
attributes:
    id -- ID
    minOccurs -- Whole Number, 1
    maxOccurs -- (Whole Number | 'unbounded'), 1
 
contents:
    annotation?, (element | group | choice | sequence | any)*
 
 
Method resolution order:
Choice
XMLSchemaComponent
XMLBase
MarkerInterface
ChoiceMarker
ModelGroupMarker

Methods defined here:
__init__(self, parent)
fromDom(self, node)

Data and other attributes defined here:
attributes = {'id': None, 'maxOccurs': '1', 'minOccurs': '1'}
contents = {'xsd': ['annotation', 'element', 'group', 'choice', 'sequence', 'any']}
tag = 'choice'

Methods inherited from XMLSchemaComponent:
getAttribute(self, attribute)
return requested attribute value or None
getAttributeDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeGroup(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeName(self)
return attribute name or None
getAttributeQName(self, attribute)
return requested attribute value as (namespace,name) or None
getContents(self, node)
retrieve xsd contents
getElementDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
getItemTrace(self)
Returns a node trace up to the <schema> item.
getModelGroup(self, attribute)
attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
getQNameAttribute(self, collection, attribute)
returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
getSchemaItem(self, collection, namespace, name)
returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
 
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
getTargetNamespace(self)
return targetNamespace
getTypeDefinition(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getXMLNS(self, prefix=None)
deference prefix or by default xmlns, returns namespace.
setAttributes(self, node)
Sets up attribute dictionary, checks for required attributes and 
sets default attribute values. attr is for default attribute values 
determined at runtime.
 
structure of attributes dictionary
    ['xmlns'][xmlns_key] --  xmlns namespace
    ['xmlns'][prefix] --  declared namespace prefix 
    [namespace][prefix] -- attributes declared in a namespace
    [attribute] -- attributes w/o prefix, default namespaces do
        not directly apply to attributes, ie Name can't collide 
        with QName.

Data and other attributes inherited from XMLSchemaComponent:
required = []
xml = 'xml'
xmlns = 'xmlns'
xmlns_key = ''

Methods inherited from XMLBase:
__str__(self)

Methods inherited from MarkerInterface:
isAll(self)
isAttribute(self)
isAttributeGroup(self)
isChoice(self)
isComplex(self)
isDeclaration(self)
isDefinition(self)
isElement(self)
isExtension(self)
isList(self)
isLocal(self)
isModelGroup(self)
isReference(self)
isRestriction(self)
isSequence(self)
isSimple(self)
isUnion(self)
isWildCard(self)

 
class ChoiceMarker(ModelGroupMarker)
    marker for choice model group
 
 

 
class ComplexMarker
    marker for complex type information
 
 

 
class ComplexType(XMLSchemaComponent, DefinitionMarker, ComplexMarker)
    <complexType name>
parents:
    redefine, schema
attributes:
    id -- ID
    name -- NCName,  required
    mixed -- boolean, false
    abstract -- boolean,  false
    block -- ('#all' | ('extension' | 'restriction')*), schema.blockDefault 
    final -- ('#all' | ('extension' | 'restriction')*), schema.finalDefault 
 
contents:
    annotation?, (simpleContent | complexContent | 
    ((group | all | choice | sequence)?, (attribute | attributeGroup)*, anyAttribute?))
 
 
Method resolution order:
ComplexType
XMLSchemaComponent
XMLBase
MarkerInterface
DefinitionMarker
ComplexMarker

Methods defined here:
__init__(self, parent)
fromDom(self, node)
getAttributeContent(self)
getElementDeclaration(self, attribute)
getTypeDefinition(self, attribute)
isMixed(self)

Data and other attributes defined here:
ComplexContent = <class XMLSchema.ComplexContent>
<complexContent>
parents:
    complexType
attributes:
    id -- ID
    mixed -- boolean, false
 
contents:
    annotation?, (restriction | extension)
SimpleContent = <class XMLSchema.SimpleContent>
<simpleContent>
parents:
    complexType
attributes:
    id -- ID
 
contents:
    annotation?, (restriction | extension)
attributes = {'abstract': 0, 'block': <function <lambda>>, 'final': <function <lambda>>, 'id': None, 'mixed': 0, 'name': None}
contents = {'xsd': ['annotation', 'simpleContent', 'complexContent', 'group', 'all', 'choice', 'sequence', 'attribute', 'attributeGroup', 'anyAttribute', 'any']}
required = ['name']
tag = 'complexType'

Methods inherited from XMLSchemaComponent:
getAttribute(self, attribute)
return requested attribute value or None
getAttributeDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeGroup(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeName(self)
return attribute name or None
getAttributeQName(self, attribute)
return requested attribute value as (namespace,name) or None
getContents(self, node)
retrieve xsd contents
getItemTrace(self)
Returns a node trace up to the <schema> item.
getModelGroup(self, attribute)
attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
getQNameAttribute(self, collection, attribute)
returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
getSchemaItem(self, collection, namespace, name)
returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
 
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
getTargetNamespace(self)
return targetNamespace
getXMLNS(self, prefix=None)
deference prefix or by default xmlns, returns namespace.
setAttributes(self, node)
Sets up attribute dictionary, checks for required attributes and 
sets default attribute values. attr is for default attribute values 
determined at runtime.
 
structure of attributes dictionary
    ['xmlns'][xmlns_key] --  xmlns namespace
    ['xmlns'][prefix] --  declared namespace prefix 
    [namespace][prefix] -- attributes declared in a namespace
    [attribute] -- attributes w/o prefix, default namespaces do
        not directly apply to attributes, ie Name can't collide 
        with QName.

Data and other attributes inherited from XMLSchemaComponent:
xml = 'xml'
xmlns = 'xmlns'
xmlns_key = ''

Methods inherited from XMLBase:
__str__(self)

Methods inherited from MarkerInterface:
isAll(self)
isAttribute(self)
isAttributeGroup(self)
isChoice(self)
isComplex(self)
isDeclaration(self)
isDefinition(self)
isElement(self)
isExtension(self)
isList(self)
isLocal(self)
isModelGroup(self)
isReference(self)
isRestriction(self)
isSequence(self)
isSimple(self)
isUnion(self)
isWildCard(self)

 
class DOMAdapter(DOMAdapterInterface)
    Adapter for ZSI.Utility.DOM
 
  Methods defined here:
__init__(self, node=None)
Reset all instance variables.
element -- DOM document, node, or None
getAttributeDictionary(self)
getContentList(self, *contents)
getNamespace(self, prefix)
prefix -- deference namespace prefix in node's context.
Ascends parent nodes until found.
getNode(self)
getParentNode(self)
getTagName(self)
hasattr(self, attr, ns=None)
attr -- attribute 
ns -- optional namespace, None means unprefixed attribute.
loadDocument(self, file)
loadFromURL(self, url)
setAttributeDictionary(self)

 
class DOMAdapterInterface
    ###########################
# DOM Utility Adapters 
##########################
 
  Methods defined here:
getAttributeDictionary(self)
returns a dict of node's attributes
getContentList(self, *contents)
returns an ordered list of child nodes
*contents -- list of node names to return
getNamespace(self, prefix)
returns namespace referenced by prefix.
getParentNode(self)
returns parent element in DOMAdapter or None
getTagName(self)
returns tagName of node
hasattr(self, attr, ns=None)
return true if node has attribute 
attr -- attribute to check for
ns -- namespace of attribute, by default None
loadDocument(self, file)
load a Document from a file object
file --
loadFromURL(self, url)
load a Document from an url
url -- URL to dereference
setAttributeDictionary(self, attributes)
set attribute dictionary

 
class DeclarationMarker
    marker for declarations
 
 

 
class DefinitionMarker
    marker for definitions
 
 

 
class ElementDeclaration(XMLSchemaComponent, ElementMarker, DeclarationMarker)
    <element name>
parents:
    schema
attributes:
    id -- ID
    name -- NCName,  required
    type -- QName
    default -- string
    fixed -- string
    nillable -- boolean,  false
    abstract -- boolean,  false
    substitutionGroup -- QName
    block -- ('#all' | ('substition' | 'extension' | 'restriction')*), 
        schema.blockDefault 
    final -- ('#all' | ('extension' | 'restriction')*), 
        schema.finalDefault 
contents:
    annotation?, (simpleType,complexType)?, (key | keyref | unique)*
 
 
Method resolution order:
ElementDeclaration
XMLSchemaComponent
XMLBase
MarkerInterface
ElementMarker
DeclarationMarker

Methods defined here:
__init__(self, parent)
fromDom(self, node)
getAttribute(self, attribute)
return attribute.
If attribute is type and it's None, and no simple or complex content, 
return the default type "xsd:anyType"
getConstraints(self)
getElementDeclaration(self, attribute)
getTypeDefinition(self, attribute=None)
If attribute is None, "type" is assumed, return the corresponding
representation of the global type definition (TypeDefinition),
or the local definition if don't find "type".  To maintain backwards
compat, if attribute is provided call base class method.
isQualified(self)
Global elements are always qualified.
setConstraints(self, constraints)

Properties defined here:
constraints
tuple of key, keyref, unique constraints
get = getConstraints(self)
set = setConstraints(self, constraints)

Data and other attributes defined here:
attributes = {'abstract': 0, 'block': <function <lambda>>, 'default': None, 'final': <function <lambda>>, 'fixed': None, 'id': None, 'name': None, 'nillable': 0, 'substitutionGroup': None, 'type': None}
contents = {'xsd': ['annotation', 'simpleType', 'complexType', 'key', 'keyref', 'unique']}
required = ['name']
tag = 'element'

Methods inherited from XMLSchemaComponent:
getAttributeDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeGroup(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeName(self)
return attribute name or None
getAttributeQName(self, attribute)
return requested attribute value as (namespace,name) or None
getContents(self, node)
retrieve xsd contents
getItemTrace(self)
Returns a node trace up to the <schema> item.
getModelGroup(self, attribute)
attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
getQNameAttribute(self, collection, attribute)
returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
getSchemaItem(self, collection, namespace, name)
returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
 
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
getTargetNamespace(self)
return targetNamespace
getXMLNS(self, prefix=None)
deference prefix or by default xmlns, returns namespace.
setAttributes(self, node)
Sets up attribute dictionary, checks for required attributes and 
sets default attribute values. attr is for default attribute values 
determined at runtime.
 
structure of attributes dictionary
    ['xmlns'][xmlns_key] --  xmlns namespace
    ['xmlns'][prefix] --  declared namespace prefix 
    [namespace][prefix] -- attributes declared in a namespace
    [attribute] -- attributes w/o prefix, default namespaces do
        not directly apply to attributes, ie Name can't collide 
        with QName.

Data and other attributes inherited from XMLSchemaComponent:
xml = 'xml'
xmlns = 'xmlns'
xmlns_key = ''

Methods inherited from XMLBase:
__str__(self)

Methods inherited from MarkerInterface:
isAll(self)
isAttribute(self)
isAttributeGroup(self)
isChoice(self)
isComplex(self)
isDeclaration(self)
isDefinition(self)
isElement(self)
isExtension(self)
isList(self)
isLocal(self)
isModelGroup(self)
isReference(self)
isRestriction(self)
isSequence(self)
isSimple(self)
isUnion(self)
isWildCard(self)

 
class ElementMarker
    marker for wildcards
 
 

 
class ElementReference(XMLSchemaComponent, ElementMarker, ReferenceMarker)
    <element ref>
parents: 
    all, choice, sequence
attributes:
    id -- ID
    ref -- QName, required
    minOccurs -- Whole Number, 1
    maxOccurs -- (Whole Number | 'unbounded'), 1
contents:
    annotation?
 
 
Method resolution order:
ElementReference
XMLSchemaComponent
XMLBase
MarkerInterface
ElementMarker
ReferenceMarker

Methods defined here:
__init__(self, parent)
fromDom(self, node)
getElementDeclaration(self, attribute=None)
If attribute is None, "ref" is assumed, return the corresponding
representation of the global element declaration (ElementDeclaration),
To maintain backwards compat, if attribute is provided call base class method.

Data and other attributes defined here:
attributes = {'id': None, 'maxOccurs': '1', 'minOccurs': '1', 'ref': None}
contents = {'xsd': ['annotation']}
required = ['ref']
tag = 'element'

Methods inherited from XMLSchemaComponent:
getAttribute(self, attribute)
return requested attribute value or None
getAttributeDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeGroup(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeName(self)
return attribute name or None
getAttributeQName(self, attribute)
return requested attribute value as (namespace,name) or None
getContents(self, node)
retrieve xsd contents
getItemTrace(self)
Returns a node trace up to the <schema> item.
getModelGroup(self, attribute)
attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
getQNameAttribute(self, collection, attribute)
returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
getSchemaItem(self, collection, namespace, name)
returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
 
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
getTargetNamespace(self)
return targetNamespace
getTypeDefinition(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getXMLNS(self, prefix=None)
deference prefix or by default xmlns, returns namespace.
setAttributes(self, node)
Sets up attribute dictionary, checks for required attributes and 
sets default attribute values. attr is for default attribute values 
determined at runtime.
 
structure of attributes dictionary
    ['xmlns'][xmlns_key] --  xmlns namespace
    ['xmlns'][prefix] --  declared namespace prefix 
    [namespace][prefix] -- attributes declared in a namespace
    [attribute] -- attributes w/o prefix, default namespaces do
        not directly apply to attributes, ie Name can't collide 
        with QName.

Data and other attributes inherited from XMLSchemaComponent:
xml = 'xml'
xmlns = 'xmlns'
xmlns_key = ''

Methods inherited from XMLBase:
__str__(self)

Methods inherited from MarkerInterface:
isAll(self)
isAttribute(self)
isAttributeGroup(self)
isChoice(self)
isComplex(self)
isDeclaration(self)
isDefinition(self)
isElement(self)
isExtension(self)
isList(self)
isLocal(self)
isModelGroup(self)
isReference(self)
isRestriction(self)
isSequence(self)
isSimple(self)
isUnion(self)
isWildCard(self)

 
class ElementWildCard(LocalElementDeclaration, WildCardMarker)
    <any>
parents: 
    choice, sequence
attributes:
    id -- ID
    minOccurs -- Whole Number, 1
    maxOccurs -- (Whole Number | 'unbounded'), 1
    namespace -- '##any' | '##other' | 
                 (anyURI* | '##targetNamespace' | '##local'), ##any
    processContents -- 'lax' | 'skip' | 'strict', strict
contents:
    annotation?
 
 
Method resolution order:
ElementWildCard
LocalElementDeclaration
ElementDeclaration
XMLSchemaComponent
XMLBase
MarkerInterface
ElementMarker
DeclarationMarker
LocalMarker
WildCardMarker

Methods defined here:
__init__(self, parent)
fromDom(self, node)
getAttribute(self, attribute)
return attribute.
getTypeDefinition(self, attribute)
isQualified(self)
Global elements are always qualified, but if processContents
are not strict could have dynamically generated local elements.

Data and other attributes defined here:
attributes = {'id': None, 'maxOccurs': '1', 'minOccurs': '1', 'namespace': '##any', 'processContents': 'strict'}
contents = {'xsd': ['annotation']}
required = []
tag = 'any'

Methods inherited from ElementDeclaration:
getConstraints(self)
getElementDeclaration(self, attribute)
setConstraints(self, constraints)

Properties inherited from ElementDeclaration:
constraints
tuple of key, keyref, unique constraints
get = getConstraints(self)
set = setConstraints(self, constraints)

Methods inherited from XMLSchemaComponent:
getAttributeDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeGroup(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeName(self)
return attribute name or None
getAttributeQName(self, attribute)
return requested attribute value as (namespace,name) or None
getContents(self, node)
retrieve xsd contents
getItemTrace(self)
Returns a node trace up to the <schema> item.
getModelGroup(self, attribute)
attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
getQNameAttribute(self, collection, attribute)
returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
getSchemaItem(self, collection, namespace, name)
returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
 
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
getTargetNamespace(self)
return targetNamespace
getXMLNS(self, prefix=None)
deference prefix or by default xmlns, returns namespace.
setAttributes(self, node)
Sets up attribute dictionary, checks for required attributes and 
sets default attribute values. attr is for default attribute values 
determined at runtime.
 
structure of attributes dictionary
    ['xmlns'][xmlns_key] --  xmlns namespace
    ['xmlns'][prefix] --  declared namespace prefix 
    [namespace][prefix] -- attributes declared in a namespace
    [attribute] -- attributes w/o prefix, default namespaces do
        not directly apply to attributes, ie Name can't collide 
        with QName.

Data and other attributes inherited from XMLSchemaComponent:
xml = 'xml'
xmlns = 'xmlns'
xmlns_key = ''

Methods inherited from XMLBase:
__str__(self)

Methods inherited from MarkerInterface:
isAll(self)
isAttribute(self)
isAttributeGroup(self)
isChoice(self)
isComplex(self)
isDeclaration(self)
isDefinition(self)
isElement(self)
isExtension(self)
isList(self)
isLocal(self)
isModelGroup(self)
isReference(self)
isRestriction(self)
isSequence(self)
isSimple(self)
isUnion(self)
isWildCard(self)

 
class ExtensionMarker
    marker for extensions
 
 

 
class IdentityConstrants(XMLSchemaComponent)
    Allow one to uniquely identify nodes in a document and ensure the 
integrity of references between them.
 
attributes -- dictionary of attributes
selector -- XPath to selected nodes
fields -- list of XPath to key field
 
 
Method resolution order:
IdentityConstrants
XMLSchemaComponent
XMLBase
MarkerInterface

Methods defined here:
__init__(self, parent)
fromDom(self, node)

Data and other attributes defined here:
Constraint = <class XMLSchema.Constraint>
Field = <class XMLSchema.Field>
<field xpath>
parent: 
    unique, key, keyref
attributes:
    id -- ID
    xpath -- XPath subset,  required
contents:
    annotation?
Selector = <class XMLSchema.Selector>
<selector xpath>
parent: 
    unique, key, keyref
attributes:
    id -- ID
    xpath -- XPath subset,  required
contents:
    annotation?

Methods inherited from XMLSchemaComponent:
getAttribute(self, attribute)
return requested attribute value or None
getAttributeDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeGroup(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeName(self)
return attribute name or None
getAttributeQName(self, attribute)
return requested attribute value as (namespace,name) or None
getContents(self, node)
retrieve xsd contents
getElementDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
getItemTrace(self)
Returns a node trace up to the <schema> item.
getModelGroup(self, attribute)
attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
getQNameAttribute(self, collection, attribute)
returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
getSchemaItem(self, collection, namespace, name)
returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
 
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
getTargetNamespace(self)
return targetNamespace
getTypeDefinition(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getXMLNS(self, prefix=None)
deference prefix or by default xmlns, returns namespace.
setAttributes(self, node)
Sets up attribute dictionary, checks for required attributes and 
sets default attribute values. attr is for default attribute values 
determined at runtime.
 
structure of attributes dictionary
    ['xmlns'][xmlns_key] --  xmlns namespace
    ['xmlns'][prefix] --  declared namespace prefix 
    [namespace][prefix] -- attributes declared in a namespace
    [attribute] -- attributes w/o prefix, default namespaces do
        not directly apply to attributes, ie Name can't collide 
        with QName.

Data and other attributes inherited from XMLSchemaComponent:
attributes = {}
contents = {}
required = []
xml = 'xml'
xmlns = 'xmlns'
xmlns_key = ''

Methods inherited from XMLBase:
__str__(self)

Data and other attributes inherited from XMLBase:
tag = None

Methods inherited from MarkerInterface:
isAll(self)
isAttribute(self)
isAttributeGroup(self)
isChoice(self)
isComplex(self)
isDeclaration(self)
isDefinition(self)
isElement(self)
isExtension(self)
isList(self)
isLocal(self)
isModelGroup(self)
isReference(self)
isRestriction(self)
isSequence(self)
isSimple(self)
isUnion(self)
isWildCard(self)

 
class Key(IdentityConstrants)
    <key name> Enforce fields are unique w/i a specified scope, and all
    field values are present w/i document.  Fields cannot
    be nillable.
 
parent: 
    element
attributes:
    id -- ID
    name -- NCName,  required
contents:
    annotation?, selector, field+
 
 
Method resolution order:
Key
IdentityConstrants
XMLSchemaComponent
XMLBase
MarkerInterface

Data and other attributes defined here:
attributes = {'id': None, 'name': None}
contents = {'xsd': ['annotation', 'selector', 'field']}
required = ['name']
tag = 'key'

Methods inherited from IdentityConstrants:
__init__(self, parent)
fromDom(self, node)

Data and other attributes inherited from IdentityConstrants:
Constraint = <class XMLSchema.Constraint>
Field = <class XMLSchema.Field>
<field xpath>
parent: 
    unique, key, keyref
attributes:
    id -- ID
    xpath -- XPath subset,  required
contents:
    annotation?
Selector = <class XMLSchema.Selector>
<selector xpath>
parent: 
    unique, key, keyref
attributes:
    id -- ID
    xpath -- XPath subset,  required
contents:
    annotation?

Methods inherited from XMLSchemaComponent:
getAttribute(self, attribute)
return requested attribute value or None
getAttributeDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeGroup(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeName(self)
return attribute name or None
getAttributeQName(self, attribute)
return requested attribute value as (namespace,name) or None
getContents(self, node)
retrieve xsd contents
getElementDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
getItemTrace(self)
Returns a node trace up to the <schema> item.
getModelGroup(self, attribute)
attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
getQNameAttribute(self, collection, attribute)
returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
getSchemaItem(self, collection, namespace, name)
returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
 
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
getTargetNamespace(self)
return targetNamespace
getTypeDefinition(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getXMLNS(self, prefix=None)
deference prefix or by default xmlns, returns namespace.
setAttributes(self, node)
Sets up attribute dictionary, checks for required attributes and 
sets default attribute values. attr is for default attribute values 
determined at runtime.
 
structure of attributes dictionary
    ['xmlns'][xmlns_key] --  xmlns namespace
    ['xmlns'][prefix] --  declared namespace prefix 
    [namespace][prefix] -- attributes declared in a namespace
    [attribute] -- attributes w/o prefix, default namespaces do
        not directly apply to attributes, ie Name can't collide 
        with QName.

Data and other attributes inherited from XMLSchemaComponent:
xml = 'xml'
xmlns = 'xmlns'
xmlns_key = ''

Methods inherited from XMLBase:
__str__(self)

Methods inherited from MarkerInterface:
isAll(self)
isAttribute(self)
isAttributeGroup(self)
isChoice(self)
isComplex(self)
isDeclaration(self)
isDefinition(self)
isElement(self)
isExtension(self)
isList(self)
isLocal(self)
isModelGroup(self)
isReference(self)
isRestriction(self)
isSequence(self)
isSimple(self)
isUnion(self)
isWildCard(self)

 
class KeyRef(IdentityConstrants)
    <keyref name refer> Ensure a match between two sets of values in an 
    instance.
parent: 
    element
attributes:
    id -- ID
    name -- NCName,  required
    refer -- QName,  required
contents:
    annotation?, selector, field+
 
 
Method resolution order:
KeyRef
IdentityConstrants
XMLSchemaComponent
XMLBase
MarkerInterface

Data and other attributes defined here:
attributes = {'id': None, 'name': None, 'refer': None}
contents = {'xsd': ['annotation', 'selector', 'field']}
required = ['name', 'refer']
tag = 'keyref'

Methods inherited from IdentityConstrants:
__init__(self, parent)
fromDom(self, node)

Data and other attributes inherited from IdentityConstrants:
Constraint = <class XMLSchema.Constraint>
Field = <class XMLSchema.Field>
<field xpath>
parent: 
    unique, key, keyref
attributes:
    id -- ID
    xpath -- XPath subset,  required
contents:
    annotation?
Selector = <class XMLSchema.Selector>
<selector xpath>
parent: 
    unique, key, keyref
attributes:
    id -- ID
    xpath -- XPath subset,  required
contents:
    annotation?

Methods inherited from XMLSchemaComponent:
getAttribute(self, attribute)
return requested attribute value or None
getAttributeDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeGroup(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeName(self)
return attribute name or None
getAttributeQName(self, attribute)
return requested attribute value as (namespace,name) or None
getContents(self, node)
retrieve xsd contents
getElementDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
getItemTrace(self)
Returns a node trace up to the <schema> item.
getModelGroup(self, attribute)
attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
getQNameAttribute(self, collection, attribute)
returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
getSchemaItem(self, collection, namespace, name)
returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
 
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
getTargetNamespace(self)
return targetNamespace
getTypeDefinition(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getXMLNS(self, prefix=None)
deference prefix or by default xmlns, returns namespace.
setAttributes(self, node)
Sets up attribute dictionary, checks for required attributes and 
sets default attribute values. attr is for default attribute values 
determined at runtime.
 
structure of attributes dictionary
    ['xmlns'][xmlns_key] --  xmlns namespace
    ['xmlns'][prefix] --  declared namespace prefix 
    [namespace][prefix] -- attributes declared in a namespace
    [attribute] -- attributes w/o prefix, default namespaces do
        not directly apply to attributes, ie Name can't collide 
        with QName.

Data and other attributes inherited from XMLSchemaComponent:
xml = 'xml'
xmlns = 'xmlns'
xmlns_key = ''

Methods inherited from XMLBase:
__str__(self)

Methods inherited from MarkerInterface:
isAll(self)
isAttribute(self)
isAttributeGroup(self)
isChoice(self)
isComplex(self)
isDeclaration(self)
isDefinition(self)
isElement(self)
isExtension(self)
isList(self)
isLocal(self)
isModelGroup(self)
isReference(self)
isRestriction(self)
isSequence(self)
isSimple(self)
isUnion(self)
isWildCard(self)

 
class ListMarker
    marker for simple type list
 
 

 
class LocalAttributeDeclaration(AttributeDeclaration, AttributeMarker, LocalMarker, DeclarationMarker)
    <attribute name>
parent: 
    complexType, restriction, extension, attributeGroup
attributes:
    id -- ID
    name -- NCName,  required
    type -- QName
    form -- ('qualified' | 'unqualified'), schema.attributeFormDefault
    use -- ('optional' | 'prohibited' | 'required'), optional
    default -- string
    fixed -- string
contents:
    annotation?, simpleType?
 
 
Method resolution order:
LocalAttributeDeclaration
AttributeDeclaration
XMLSchemaComponent
XMLBase
MarkerInterface
AttributeMarker
DeclarationMarker
LocalMarker

Methods defined here:
__init__(self, parent)
fromDom(self, node)

Data and other attributes defined here:
attributes = {'default': None, 'fixed': None, 'form': <function <lambda>>, 'id': None, 'name': None, 'type': None, 'use': 'optional'}
contents = {'xsd': ['annotation', 'simpleType']}
required = ['name']

Data and other attributes inherited from AttributeDeclaration:
tag = 'attribute'

Methods inherited from XMLSchemaComponent:
getAttribute(self, attribute)
return requested attribute value or None
getAttributeDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeGroup(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeName(self)
return attribute name or None
getAttributeQName(self, attribute)
return requested attribute value as (namespace,name) or None
getContents(self, node)
retrieve xsd contents
getElementDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
getItemTrace(self)
Returns a node trace up to the <schema> item.
getModelGroup(self, attribute)
attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
getQNameAttribute(self, collection, attribute)
returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
getSchemaItem(self, collection, namespace, name)
returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
 
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
getTargetNamespace(self)
return targetNamespace
getTypeDefinition(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getXMLNS(self, prefix=None)
deference prefix or by default xmlns, returns namespace.
setAttributes(self, node)
Sets up attribute dictionary, checks for required attributes and 
sets default attribute values. attr is for default attribute values 
determined at runtime.
 
structure of attributes dictionary
    ['xmlns'][xmlns_key] --  xmlns namespace
    ['xmlns'][prefix] --  declared namespace prefix 
    [namespace][prefix] -- attributes declared in a namespace
    [attribute] -- attributes w/o prefix, default namespaces do
        not directly apply to attributes, ie Name can't collide 
        with QName.

Data and other attributes inherited from XMLSchemaComponent:
xml = 'xml'
xmlns = 'xmlns'
xmlns_key = ''

Methods inherited from XMLBase:
__str__(self)

Methods inherited from MarkerInterface:
isAll(self)
isAttribute(self)
isAttributeGroup(self)
isChoice(self)
isComplex(self)
isDeclaration(self)
isDefinition(self)
isElement(self)
isExtension(self)
isList(self)
isLocal(self)
isModelGroup(self)
isReference(self)
isRestriction(self)
isSequence(self)
isSimple(self)
isUnion(self)
isWildCard(self)

 
class LocalComplexType(ComplexType, LocalMarker)
    <complexType>
parents:
    element
attributes:
    id -- ID
    mixed -- boolean, false
 
contents:
    annotation?, (simpleContent | complexContent | 
    ((group | all | choice | sequence)?, (attribute | attributeGroup)*, anyAttribute?))
 
 
Method resolution order:
LocalComplexType
ComplexType
XMLSchemaComponent
XMLBase
MarkerInterface
DefinitionMarker
ComplexMarker
LocalMarker

Data and other attributes defined here:
attributes = {'id': None, 'mixed': 0}
required = []
tag = 'complexType'

Methods inherited from ComplexType:
__init__(self, parent)
fromDom(self, node)
getAttributeContent(self)
getElementDeclaration(self, attribute)
getTypeDefinition(self, attribute)
isMixed(self)

Data and other attributes inherited from ComplexType:
ComplexContent = <class XMLSchema.ComplexContent>
<complexContent>
parents:
    complexType
attributes:
    id -- ID
    mixed -- boolean, false
 
contents:
    annotation?, (restriction | extension)
SimpleContent = <class XMLSchema.SimpleContent>
<simpleContent>
parents:
    complexType
attributes:
    id -- ID
 
contents:
    annotation?, (restriction | extension)
contents = {'xsd': ['annotation', 'simpleContent', 'complexContent', 'group', 'all', 'choice', 'sequence', 'attribute', 'attributeGroup', 'anyAttribute', 'any']}

Methods inherited from XMLSchemaComponent:
getAttribute(self, attribute)
return requested attribute value or None
getAttributeDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeGroup(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeName(self)
return attribute name or None
getAttributeQName(self, attribute)
return requested attribute value as (namespace,name) or None
getContents(self, node)
retrieve xsd contents
getItemTrace(self)
Returns a node trace up to the <schema> item.
getModelGroup(self, attribute)
attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
getQNameAttribute(self, collection, attribute)
returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
getSchemaItem(self, collection, namespace, name)
returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
 
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
getTargetNamespace(self)
return targetNamespace
getXMLNS(self, prefix=None)
deference prefix or by default xmlns, returns namespace.
setAttributes(self, node)
Sets up attribute dictionary, checks for required attributes and 
sets default attribute values. attr is for default attribute values 
determined at runtime.
 
structure of attributes dictionary
    ['xmlns'][xmlns_key] --  xmlns namespace
    ['xmlns'][prefix] --  declared namespace prefix 
    [namespace][prefix] -- attributes declared in a namespace
    [attribute] -- attributes w/o prefix, default namespaces do
        not directly apply to attributes, ie Name can't collide 
        with QName.

Data and other attributes inherited from XMLSchemaComponent:
xml = 'xml'
xmlns = 'xmlns'
xmlns_key = ''

Methods inherited from XMLBase:
__str__(self)

Methods inherited from MarkerInterface:
isAll(self)
isAttribute(self)
isAttributeGroup(self)
isChoice(self)
isComplex(self)
isDeclaration(self)
isDefinition(self)
isElement(self)
isExtension(self)
isList(self)
isLocal(self)
isModelGroup(self)
isReference(self)
isRestriction(self)
isSequence(self)
isSimple(self)
isUnion(self)
isWildCard(self)

 
class LocalElementDeclaration(ElementDeclaration, LocalMarker)
    <element>
parents:
    all, choice, sequence
attributes:
    id -- ID
    name -- NCName,  required
    form -- ('qualified' | 'unqualified'), schema.elementFormDefault
    type -- QName
    minOccurs -- Whole Number, 1
    maxOccurs -- (Whole Number | 'unbounded'), 1
    default -- string
    fixed -- string
    nillable -- boolean,  false
    block -- ('#all' | ('extension' | 'restriction')*), schema.blockDefault 
contents:
    annotation?, (simpleType,complexType)?, (key | keyref | unique)*
 
 
Method resolution order:
LocalElementDeclaration
ElementDeclaration
XMLSchemaComponent
XMLBase
MarkerInterface
ElementMarker
DeclarationMarker
LocalMarker

Methods defined here:
isQualified(self)
Local elements can be qualified or unqualifed according
        to the attribute form, or the elementFormDefault.  By default
        local elements are unqualified.

Data and other attributes defined here:
attributes = {'abstract': 0, 'block': <function <lambda>>, 'default': None, 'fixed': None, 'form': <function <lambda>>, 'id': None, 'maxOccurs': '1', 'minOccurs': '1', 'name': None, 'nillable': 0, ...}
contents = {'xsd': ['annotation', 'simpleType', 'complexType', 'key', 'keyref', 'unique']}
required = ['name']

Methods inherited from ElementDeclaration:
__init__(self, parent)
fromDom(self, node)
getAttribute(self, attribute)
return attribute.
If attribute is type and it's None, and no simple or complex content, 
return the default type "xsd:anyType"
getConstraints(self)
getElementDeclaration(self, attribute)
getTypeDefinition(self, attribute=None)
If attribute is None, "type" is assumed, return the corresponding
representation of the global type definition (TypeDefinition),
or the local definition if don't find "type".  To maintain backwards
compat, if attribute is provided call base class method.
setConstraints(self, constraints)

Properties inherited from ElementDeclaration:
constraints
tuple of key, keyref, unique constraints
get = getConstraints(self)
set = setConstraints(self, constraints)

Data and other attributes inherited from ElementDeclaration:
tag = 'element'

Methods inherited from XMLSchemaComponent:
getAttributeDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeGroup(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeName(self)
return attribute name or None
getAttributeQName(self, attribute)
return requested attribute value as (namespace,name) or None
getContents(self, node)
retrieve xsd contents
getItemTrace(self)
Returns a node trace up to the <schema> item.
getModelGroup(self, attribute)
attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
getQNameAttribute(self, collection, attribute)
returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
getSchemaItem(self, collection, namespace, name)
returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
 
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
getTargetNamespace(self)
return targetNamespace
getXMLNS(self, prefix=None)
deference prefix or by default xmlns, returns namespace.
setAttributes(self, node)
Sets up attribute dictionary, checks for required attributes and 
sets default attribute values. attr is for default attribute values 
determined at runtime.
 
structure of attributes dictionary
    ['xmlns'][xmlns_key] --  xmlns namespace
    ['xmlns'][prefix] --  declared namespace prefix 
    [namespace][prefix] -- attributes declared in a namespace
    [attribute] -- attributes w/o prefix, default namespaces do
        not directly apply to attributes, ie Name can't collide 
        with QName.

Data and other attributes inherited from XMLSchemaComponent:
xml = 'xml'
xmlns = 'xmlns'
xmlns_key = ''

Methods inherited from XMLBase:
__str__(self)

Methods inherited from MarkerInterface:
isAll(self)
isAttribute(self)
isAttributeGroup(self)
isChoice(self)
isComplex(self)
isDeclaration(self)
isDefinition(self)
isElement(self)
isExtension(self)
isList(self)
isLocal(self)
isModelGroup(self)
isReference(self)
isRestriction(self)
isSequence(self)
isSimple(self)
isUnion(self)
isWildCard(self)

 
class LocalMarker
    marker for complex type information
 
 

 
class MarkerInterface
     Methods defined here:
isAll(self)
isAttribute(self)
isAttributeGroup(self)
isChoice(self)
isComplex(self)
isDeclaration(self)
isDefinition(self)
isElement(self)
isExtension(self)
isList(self)
isLocal(self)
isModelGroup(self)
isReference(self)
isRestriction(self)
isSequence(self)
isSimple(self)
isUnion(self)
isWildCard(self)

 
class ModelGroupDefinition(XMLSchemaComponent, ModelGroupMarker, DefinitionMarker)
    <group name>
parents:
    redefine, schema
attributes:
    id -- ID
    name -- NCName,  required
 
contents:
    annotation?, (all | choice | sequence)?
 
 
Method resolution order:
ModelGroupDefinition
XMLSchemaComponent
XMLBase
MarkerInterface
ModelGroupMarker
DefinitionMarker

Methods defined here:
__init__(self, parent)
fromDom(self, node)

Data and other attributes defined here:
attributes = {'id': None, 'name': None}
contents = {'xsd': ['annotation', 'all', 'choice', 'sequence']}
required = ['name']
tag = 'group'

Methods inherited from XMLSchemaComponent:
getAttribute(self, attribute)
return requested attribute value or None
getAttributeDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeGroup(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeName(self)
return attribute name or None
getAttributeQName(self, attribute)
return requested attribute value as (namespace,name) or None
getContents(self, node)
retrieve xsd contents
getElementDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
getItemTrace(self)
Returns a node trace up to the <schema> item.
getModelGroup(self, attribute)
attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
getQNameAttribute(self, collection, attribute)
returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
getSchemaItem(self, collection, namespace, name)
returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
 
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
getTargetNamespace(self)
return targetNamespace
getTypeDefinition(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getXMLNS(self, prefix=None)
deference prefix or by default xmlns, returns namespace.
setAttributes(self, node)
Sets up attribute dictionary, checks for required attributes and 
sets default attribute values. attr is for default attribute values 
determined at runtime.
 
structure of attributes dictionary
    ['xmlns'][xmlns_key] --  xmlns namespace
    ['xmlns'][prefix] --  declared namespace prefix 
    [namespace][prefix] -- attributes declared in a namespace
    [attribute] -- attributes w/o prefix, default namespaces do
        not directly apply to attributes, ie Name can't collide 
        with QName.

Data and other attributes inherited from XMLSchemaComponent:
xml = 'xml'
xmlns = 'xmlns'
xmlns_key = ''

Methods inherited from XMLBase:
__str__(self)

Methods inherited from MarkerInterface:
isAll(self)
isAttribute(self)
isAttributeGroup(self)
isChoice(self)
isComplex(self)
isDeclaration(self)
isDefinition(self)
isElement(self)
isExtension(self)
isList(self)
isLocal(self)
isModelGroup(self)
isReference(self)
isRestriction(self)
isSequence(self)
isSimple(self)
isUnion(self)
isWildCard(self)

 
class ModelGroupMarker
    marker for model groups
 
 

 
class ModelGroupReference(XMLSchemaComponent, ModelGroupMarker, ReferenceMarker)
    <group ref>
parents:
    choice, complexType, extension, restriction, sequence
attributes:
    id -- ID
    ref -- NCName,  required
    minOccurs -- Whole Number, 1
    maxOccurs -- (Whole Number | 'unbounded'), 1
 
contents:
    annotation?
 
 
Method resolution order:
ModelGroupReference
XMLSchemaComponent
XMLBase
MarkerInterface
ModelGroupMarker
ReferenceMarker

Methods defined here:
__init__(self, parent)
fromDom(self, node)
getModelGroupReference(self)

Data and other attributes defined here:
attributes = {'id': None, 'maxOccurs': '1', 'minOccurs': '1', 'ref': None}
contents = {'xsd': ['annotation']}
required = ['ref']
tag = 'group'

Methods inherited from XMLSchemaComponent:
getAttribute(self, attribute)
return requested attribute value or None
getAttributeDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeGroup(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeName(self)
return attribute name or None
getAttributeQName(self, attribute)
return requested attribute value as (namespace,name) or None
getContents(self, node)
retrieve xsd contents
getElementDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
getItemTrace(self)
Returns a node trace up to the <schema> item.
getModelGroup(self, attribute)
attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
getQNameAttribute(self, collection, attribute)
returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
getSchemaItem(self, collection, namespace, name)
returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
 
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
getTargetNamespace(self)
return targetNamespace
getTypeDefinition(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getXMLNS(self, prefix=None)
deference prefix or by default xmlns, returns namespace.
setAttributes(self, node)
Sets up attribute dictionary, checks for required attributes and 
sets default attribute values. attr is for default attribute values 
determined at runtime.
 
structure of attributes dictionary
    ['xmlns'][xmlns_key] --  xmlns namespace
    ['xmlns'][prefix] --  declared namespace prefix 
    [namespace][prefix] -- attributes declared in a namespace
    [attribute] -- attributes w/o prefix, default namespaces do
        not directly apply to attributes, ie Name can't collide 
        with QName.

Data and other attributes inherited from XMLSchemaComponent:
xml = 'xml'
xmlns = 'xmlns'
xmlns_key = ''

Methods inherited from XMLBase:
__str__(self)

Methods inherited from MarkerInterface:
isAll(self)
isAttribute(self)
isAttributeGroup(self)
isChoice(self)
isComplex(self)
isDeclaration(self)
isDefinition(self)
isElement(self)
isExtension(self)
isList(self)
isLocal(self)
isModelGroup(self)
isReference(self)
isRestriction(self)
isSequence(self)
isSimple(self)
isUnion(self)
isWildCard(self)

 
class NoSchemaLocationWarning(exceptions.Exception)
     Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class Notation(XMLSchemaComponent)
    <notation>
parent:
    schema
attributes:
    id -- ID
    name -- NCName, Required
    public -- token, Required
    system -- anyURI
contents:
    annotation?
 
 
Method resolution order:
Notation
XMLSchemaComponent
XMLBase
MarkerInterface

Methods defined here:
__init__(self, parent)
fromDom(self, node)

Data and other attributes defined here:
attributes = {'id': None, 'name': None, 'public': None, 'system': None}
contents = {'xsd': 'annotation'}
required = ['name', 'public']
tag = 'notation'

Methods inherited from XMLSchemaComponent:
getAttribute(self, attribute)
return requested attribute value or None
getAttributeDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeGroup(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeName(self)
return attribute name or None
getAttributeQName(self, attribute)
return requested attribute value as (namespace,name) or None
getContents(self, node)
retrieve xsd contents
getElementDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
getItemTrace(self)
Returns a node trace up to the <schema> item.
getModelGroup(self, attribute)
attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
getQNameAttribute(self, collection, attribute)
returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
getSchemaItem(self, collection, namespace, name)
returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
 
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
getTargetNamespace(self)
return targetNamespace
getTypeDefinition(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getXMLNS(self, prefix=None)
deference prefix or by default xmlns, returns namespace.
setAttributes(self, node)
Sets up attribute dictionary, checks for required attributes and 
sets default attribute values. attr is for default attribute values 
determined at runtime.
 
structure of attributes dictionary
    ['xmlns'][xmlns_key] --  xmlns namespace
    ['xmlns'][prefix] --  declared namespace prefix 
    [namespace][prefix] -- attributes declared in a namespace
    [attribute] -- attributes w/o prefix, default namespaces do
        not directly apply to attributes, ie Name can't collide 
        with QName.

Data and other attributes inherited from XMLSchemaComponent:
xml = 'xml'
xmlns = 'xmlns'
xmlns_key = ''

Methods inherited from XMLBase:
__str__(self)

Methods inherited from MarkerInterface:
isAll(self)
isAttribute(self)
isAttributeGroup(self)
isChoice(self)
isComplex(self)
isDeclaration(self)
isDefinition(self)
isElement(self)
isExtension(self)
isList(self)
isLocal(self)
isModelGroup(self)
isReference(self)
isRestriction(self)
isSequence(self)
isSimple(self)
isUnion(self)
isWildCard(self)

 
class Redefine
    <redefine>
parents:
attributes:
 
contents:
 
  Data and other attributes defined here:
tag = 'redefine'

 
class ReferenceMarker
    marker for references
 
 

 
class RestrictionMarker
    marker for restrictions
 
  Data and other attributes defined here:
facets = ['enumeration', 'length', 'maxExclusive', 'maxInclusive', 'maxLength', 'minExclusive', 'minInclusive', 'minLength', 'pattern', 'fractionDigits', 'totalDigits', 'whiteSpace']

 
class SchemaError(exceptions.Exception)
     Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class SchemaReader
    SchemaReader creates XMLSchema objects from urls and xml data.
 
  Methods defined here:
__init__(self, domReader=None, base_url=None)
domReader -- class must implement DOMAdapterInterface
base_url -- base url string
addSchemaByLocation(self, location, schema)
provide reader with schema document for a location.
addSchemaByNamespace(self, schema)
provide reader with schema document for a targetNamespace.
loadFromFile(self, filename)
Return an XMLSchema instance loaded from the given file.
filename -- name of file to open
loadFromNode(self, parent, element)
element -- DOM node or document
parent -- WSDLAdapter instance
loadFromStream(self, file, url=None)
Return an XMLSchema instance loaded from a file object.
file -- file object
url -- base location for resolving imports/includes.
loadFromString(self, data)
Return an XMLSchema instance loaded from an XML string.
data -- XML string
loadFromURL(self, url, schema=None)
Return an XMLSchema instance loaded from the given url.
url -- URL to dereference
schema -- Optional XMLSchema instance.

Data and other attributes defined here:
namespaceToSchema = {}

 
class Sequence(XMLSchemaComponent, SequenceMarker)
    <sequence>
parents: 
    complexType, extension, restriction, group, choice, sequence
attributes:
    id -- ID
    minOccurs -- Whole Number, 1
    maxOccurs -- (Whole Number | 'unbounded'), 1
 
contents:
    annotation?, (element | group | choice | sequence | any)*
 
 
Method resolution order:
Sequence
XMLSchemaComponent
XMLBase
MarkerInterface
SequenceMarker
ModelGroupMarker

Methods defined here:
__init__(self, parent)
fromDom(self, node)

Data and other attributes defined here:
attributes = {'id': None, 'maxOccurs': '1', 'minOccurs': '1'}
contents = {'xsd': ['annotation', 'element', 'group', 'choice', 'sequence', 'any']}
tag = 'sequence'

Methods inherited from XMLSchemaComponent:
getAttribute(self, attribute)
return requested attribute value or None
getAttributeDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeGroup(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeName(self)
return attribute name or None
getAttributeQName(self, attribute)
return requested attribute value as (namespace,name) or None
getContents(self, node)
retrieve xsd contents
getElementDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
getItemTrace(self)
Returns a node trace up to the <schema> item.
getModelGroup(self, attribute)
attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
getQNameAttribute(self, collection, attribute)
returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
getSchemaItem(self, collection, namespace, name)
returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
 
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
getTargetNamespace(self)
return targetNamespace
getTypeDefinition(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getXMLNS(self, prefix=None)
deference prefix or by default xmlns, returns namespace.
setAttributes(self, node)
Sets up attribute dictionary, checks for required attributes and 
sets default attribute values. attr is for default attribute values 
determined at runtime.
 
structure of attributes dictionary
    ['xmlns'][xmlns_key] --  xmlns namespace
    ['xmlns'][prefix] --  declared namespace prefix 
    [namespace][prefix] -- attributes declared in a namespace
    [attribute] -- attributes w/o prefix, default namespaces do
        not directly apply to attributes, ie Name can't collide 
        with QName.

Data and other attributes inherited from XMLSchemaComponent:
required = []
xml = 'xml'
xmlns = 'xmlns'
xmlns_key = ''

Methods inherited from XMLBase:
__str__(self)

Methods inherited from MarkerInterface:
isAll(self)
isAttribute(self)
isAttributeGroup(self)
isChoice(self)
isComplex(self)
isDeclaration(self)
isDefinition(self)
isElement(self)
isExtension(self)
isList(self)
isLocal(self)
isModelGroup(self)
isReference(self)
isRestriction(self)
isSequence(self)
isSimple(self)
isUnion(self)
isWildCard(self)

 
class SequenceMarker(ModelGroupMarker)
    marker for sequence model group
 
 

 
class SimpleMarker
    marker for simple type information
 
 

 
class SimpleType(XMLSchemaComponent, DefinitionMarker, SimpleMarker)
    <simpleType name>
parents:
    redefine, schema
attributes:
    id -- ID
    name -- NCName, required
    final -- ('#all' | ('extension' | 'restriction' | 'list' | 'union')*), 
        schema.finalDefault 
 
contents:
    annotation?, (restriction | list | union)
 
 
Method resolution order:
SimpleType
XMLSchemaComponent
XMLBase
MarkerInterface
DefinitionMarker
SimpleMarker

Methods defined here:
__init__(self, parent)
fromDom(self, node)
getElementDeclaration(self, attribute)
getTypeDefinition(self, attribute)

Data and other attributes defined here:
List = <class XMLSchema.List>
<list>
parents:
    simpleType
attributes:
    id -- ID
    itemType -- QName, required or simpleType child.
 
contents:
    annotation?, simpleType?
Restriction = <class XMLSchema.Restriction>
<restriction base>
parents:
    simpleType
attributes:
    id -- ID
    base -- QName, required or simpleType child
 
contents:
    annotation?, simpleType?, (enumeration | length | 
    maxExclusive | maxInclusive | maxLength | minExclusive | 
    minInclusive | minLength | pattern | fractionDigits | 
    totalDigits | whiteSpace)*
Union = <class XMLSchema.Union>
<union>
parents:
    simpleType
attributes:
    id -- ID
    memberTypes -- list of QNames, required or simpleType child.
 
contents:
    annotation?, simpleType*
attributes = {'final': <function <lambda>>, 'id': None, 'name': None}
contents = {'xsd': ['annotation', 'restriction', 'list', 'union']}
required = ['name']
tag = 'simpleType'

Methods inherited from XMLSchemaComponent:
getAttribute(self, attribute)
return requested attribute value or None
getAttributeDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeGroup(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeName(self)
return attribute name or None
getAttributeQName(self, attribute)
return requested attribute value as (namespace,name) or None
getContents(self, node)
retrieve xsd contents
getItemTrace(self)
Returns a node trace up to the <schema> item.
getModelGroup(self, attribute)
attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
getQNameAttribute(self, collection, attribute)
returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
getSchemaItem(self, collection, namespace, name)
returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
 
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
getTargetNamespace(self)
return targetNamespace
getXMLNS(self, prefix=None)
deference prefix or by default xmlns, returns namespace.
setAttributes(self, node)
Sets up attribute dictionary, checks for required attributes and 
sets default attribute values. attr is for default attribute values 
determined at runtime.
 
structure of attributes dictionary
    ['xmlns'][xmlns_key] --  xmlns namespace
    ['xmlns'][prefix] --  declared namespace prefix 
    [namespace][prefix] -- attributes declared in a namespace
    [attribute] -- attributes w/o prefix, default namespaces do
        not directly apply to attributes, ie Name can't collide 
        with QName.

Data and other attributes inherited from XMLSchemaComponent:
xml = 'xml'
xmlns = 'xmlns'
xmlns_key = ''

Methods inherited from XMLBase:
__str__(self)

Methods inherited from MarkerInterface:
isAll(self)
isAttribute(self)
isAttributeGroup(self)
isChoice(self)
isComplex(self)
isDeclaration(self)
isDefinition(self)
isElement(self)
isExtension(self)
isList(self)
isLocal(self)
isModelGroup(self)
isReference(self)
isRestriction(self)
isSequence(self)
isSimple(self)
isUnion(self)
isWildCard(self)

 
class TypeDescriptionComponent(__builtin__.tuple)
    Tuple of length 2, consisting of
a namespace and unprefixed name.
 
 
Method resolution order:
TypeDescriptionComponent
__builtin__.tuple
__builtin__.object

Methods defined here:
__init__(self, args)
args -- (namespace, name)
Remove the name's prefix, irrelevant.
getName(self)
getTargetNamespace(self)

Data and other attributes defined here:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)

Methods inherited from __builtin__.tuple:
__add__(...)
x.__add__(y) <==> x+y
__contains__(...)
x.__contains__(y) <==> y in x
__eq__(...)
x.__eq__(y) <==> x==y
__ge__(...)
x.__ge__(y) <==> x>=y
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getnewargs__(...)
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__gt__(...)
x.__gt__(y) <==> x>y
__hash__(...)
x.__hash__() <==> hash(x)
__iter__(...)
x.__iter__() <==> iter(x)
__le__(...)
x.__le__(y) <==> x<=y
__len__(...)
x.__len__() <==> len(x)
__lt__(...)
x.__lt__(y) <==> x<y
__mul__(...)
x.__mul__(n) <==> x*n
__ne__(...)
x.__ne__(y) <==> x!=y
__repr__(...)
x.__repr__() <==> repr(x)
__rmul__(...)
x.__rmul__(n) <==> n*x

Data and other attributes inherited from __builtin__.tuple:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

 
class UnionMarker
    marker for simple type Union
 
 

 
class Unique(IdentityConstrants)
    <unique name> Enforce fields are unique w/i a specified scope.
 
parent: 
    element
attributes:
    id -- ID
    name -- NCName,  required
contents:
    annotation?, selector, field+
 
 
Method resolution order:
Unique
IdentityConstrants
XMLSchemaComponent
XMLBase
MarkerInterface

Data and other attributes defined here:
attributes = {'id': None, 'name': None}
contents = {'xsd': ['annotation', 'selector', 'field']}
required = ['name']
tag = 'unique'

Methods inherited from IdentityConstrants:
__init__(self, parent)
fromDom(self, node)

Data and other attributes inherited from IdentityConstrants:
Constraint = <class XMLSchema.Constraint>
Field = <class XMLSchema.Field>
<field xpath>
parent: 
    unique, key, keyref
attributes:
    id -- ID
    xpath -- XPath subset,  required
contents:
    annotation?
Selector = <class XMLSchema.Selector>
<selector xpath>
parent: 
    unique, key, keyref
attributes:
    id -- ID
    xpath -- XPath subset,  required
contents:
    annotation?

Methods inherited from XMLSchemaComponent:
getAttribute(self, attribute)
return requested attribute value or None
getAttributeDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeGroup(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeName(self)
return attribute name or None
getAttributeQName(self, attribute)
return requested attribute value as (namespace,name) or None
getContents(self, node)
retrieve xsd contents
getElementDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
getItemTrace(self)
Returns a node trace up to the <schema> item.
getModelGroup(self, attribute)
attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
getQNameAttribute(self, collection, attribute)
returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
getSchemaItem(self, collection, namespace, name)
returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
 
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
getTargetNamespace(self)
return targetNamespace
getTypeDefinition(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getXMLNS(self, prefix=None)
deference prefix or by default xmlns, returns namespace.
setAttributes(self, node)
Sets up attribute dictionary, checks for required attributes and 
sets default attribute values. attr is for default attribute values 
determined at runtime.
 
structure of attributes dictionary
    ['xmlns'][xmlns_key] --  xmlns namespace
    ['xmlns'][prefix] --  declared namespace prefix 
    [namespace][prefix] -- attributes declared in a namespace
    [attribute] -- attributes w/o prefix, default namespaces do
        not directly apply to attributes, ie Name can't collide 
        with QName.

Data and other attributes inherited from XMLSchemaComponent:
xml = 'xml'
xmlns = 'xmlns'
xmlns_key = ''

Methods inherited from XMLBase:
__str__(self)

Methods inherited from MarkerInterface:
isAll(self)
isAttribute(self)
isAttributeGroup(self)
isChoice(self)
isComplex(self)
isDeclaration(self)
isDefinition(self)
isElement(self)
isExtension(self)
isList(self)
isLocal(self)
isModelGroup(self)
isReference(self)
isRestriction(self)
isSequence(self)
isSimple(self)
isUnion(self)
isWildCard(self)

 
class WSDLToolsAdapter(XMLSchemaComponent)
    WSDL Adapter to grab the attributes from the wsdl document node.
 
 
Method resolution order:
WSDLToolsAdapter
XMLSchemaComponent
XMLBase
MarkerInterface

Methods defined here:
__init__(self, wsdl)
getImportSchemas(self)
returns WSDLTools.WSDL types Collection

Data and other attributes defined here:
attributes = {'name': None, 'targetNamespace': None}
tag = 'definitions'

Methods inherited from XMLSchemaComponent:
getAttribute(self, attribute)
return requested attribute value or None
getAttributeDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeGroup(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeName(self)
return attribute name or None
getAttributeQName(self, attribute)
return requested attribute value as (namespace,name) or None
getContents(self, node)
retrieve xsd contents
getElementDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
getItemTrace(self)
Returns a node trace up to the <schema> item.
getModelGroup(self, attribute)
attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
getQNameAttribute(self, collection, attribute)
returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
getSchemaItem(self, collection, namespace, name)
returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
 
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
getTargetNamespace(self)
return targetNamespace
getTypeDefinition(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getXMLNS(self, prefix=None)
deference prefix or by default xmlns, returns namespace.
setAttributes(self, node)
Sets up attribute dictionary, checks for required attributes and 
sets default attribute values. attr is for default attribute values 
determined at runtime.
 
structure of attributes dictionary
    ['xmlns'][xmlns_key] --  xmlns namespace
    ['xmlns'][prefix] --  declared namespace prefix 
    [namespace][prefix] -- attributes declared in a namespace
    [attribute] -- attributes w/o prefix, default namespaces do
        not directly apply to attributes, ie Name can't collide 
        with QName.

Data and other attributes inherited from XMLSchemaComponent:
contents = {}
required = []
xml = 'xml'
xmlns = 'xmlns'
xmlns_key = ''

Methods inherited from XMLBase:
__str__(self)

Methods inherited from MarkerInterface:
isAll(self)
isAttribute(self)
isAttributeGroup(self)
isChoice(self)
isComplex(self)
isDeclaration(self)
isDefinition(self)
isElement(self)
isExtension(self)
isList(self)
isLocal(self)
isModelGroup(self)
isReference(self)
isRestriction(self)
isSequence(self)
isSimple(self)
isUnion(self)
isWildCard(self)

 
class WildCardMarker
    marker for wildcards
 
 

 
class XMLBase
    These class variables are for string indentation.
 
  Methods defined here:
__str__(self)

Data and other attributes defined here:
tag = None

 
class XMLSchema(XMLSchemaComponent)
    A schema is a collection of schema components derived from one
or more schema documents, that is, one or more <schema> element
information items. It represents the abstract notion of a schema
rather than a single schema document (or other representation).
 
<schema>
parent:
    ROOT
attributes:
    id -- ID
    version -- token
    xml:lang -- language
    targetNamespace -- anyURI
    attributeFormDefault -- 'qualified' | 'unqualified', 'unqualified'
    elementFormDefault -- 'qualified' | 'unqualified', 'unqualified'
    blockDefault -- '#all' | list of 
        ('substitution | 'extension' | 'restriction')
    finalDefault -- '#all' | list of 
        ('extension' | 'restriction' | 'list' | 'union')
 
contents:
    ((include | import | redefine | annotation)*, 
     (attribute, attributeGroup, complexType, element, group, 
      notation, simpleType)*, annotation*)*
 
 
 attributes -- schema attributes
 imports -- import statements
 includes -- include statements
 redefines -- 
 types    -- global simpleType, complexType definitions
 elements -- global element declarations
 attr_decl -- global attribute declarations
 attr_groups -- attribute Groups
 model_groups -- model Groups
 notations -- global notations
 
 
Method resolution order:
XMLSchema
XMLSchemaComponent
XMLBase
MarkerInterface

Methods defined here:
__init__(self, parent=None)
parent -- 
instance variables:
targetNamespace -- schema's declared targetNamespace, or empty string.
_imported_schemas -- namespace keyed dict of schema dependencies, if 
   a schema is provided instance will not resolve import statement.
_included_schemas -- schemaLocation keyed dict of component schemas, 
   if schema is provided instance will not resolve include statement.
_base_url -- needed for relative URLs support, only works with URLs
    relative to initial document.
includes -- collection of include statements
imports -- collection of import statements
elements -- collection of global element declarations
types -- collection of global type definitions
attr_decl -- collection of global attribute declarations
attr_groups -- collection of global attribute group definitions
model_groups -- collection of model group definitions
notations -- collection of notations
addImportSchema(self, schema)
for resolving import statements in Schema instance
schema -- schema instance
_imported_schemas
addIncludeSchema(self, schemaLocation, schema)
for resolving include statements in Schema instance
schemaLocation -- schema location
schema -- schema instance
_included_schemas
getAttributeFormDefault(self)
return attributeFormDefault attribute
getBaseUrl(self)
get base url, used for normalizing all relative uri's
getBlockDefault(self)
return blockDefault attribute
getElementFormDefault(self)
return elementFormDefault attribute
getFinalDefault(self)
return finalDefault attribute
getImportSchemas(self)
get the import schema dictionary, which is used to 
reference depedent schemas.
getIncludeSchemas(self)
get the include schema dictionary, which is keyed with 
schemaLocation (uri).
getNode(self)
Interacting with the underlying DOM tree.
getSchemaNamespacesToImport(self)
returns tuple of namespaces the schema instance has declared
itself to be depedent upon.
isElementFormDefaultQualified(self)
load(self, node, location=None)
setBaseUrl(self, url)
set base url, used for normalizing all relative uri's
setImportSchemas(self, schema_dict)
set the import schema dictionary, which is used to 
reference depedent schemas.
setIncludeSchemas(self, schema_dict)
set the include schema dictionary, which is keyed with 
schemaLocation (uri).  
This is a means of providing 
schemas to the current schema for content inclusion.

Data and other attributes defined here:
Import = <class XMLSchema.Import>
<import> 
parent:
    schema
attributes:
    id -- ID
    namespace -- anyURI
    schemaLocation -- anyURI
contents:
    annotation?
Include = <class XMLSchema.Include>
<include schemaLocation>
parent:
    schema
attributes:
    id -- ID
    schemaLocation -- anyURI, required
contents:
    annotation?
attributes = {'attributeFormDefault': 'unqualified', 'blockDefault': None, 'elementFormDefault': 'unqualified', 'finalDefault': None, 'id': None, 'targetNamespace': None, 'version': None, 'xml:lang': None}
contents = {'xsd': ('include', 'import', 'redefine', 'annotation', 'attribute', 'attributeGroup', 'complexType', 'element', 'group', 'notation', 'simpleType', 'annotation')}
empty_namespace = ''
tag = 'schema'

Methods inherited from XMLSchemaComponent:
getAttribute(self, attribute)
return requested attribute value or None
getAttributeDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeGroup(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeName(self)
return attribute name or None
getAttributeQName(self, attribute)
return requested attribute value as (namespace,name) or None
getContents(self, node)
retrieve xsd contents
getElementDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
getItemTrace(self)
Returns a node trace up to the <schema> item.
getModelGroup(self, attribute)
attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
getQNameAttribute(self, collection, attribute)
returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
getSchemaItem(self, collection, namespace, name)
returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
 
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
getTargetNamespace(self)
return targetNamespace
getTypeDefinition(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getXMLNS(self, prefix=None)
deference prefix or by default xmlns, returns namespace.
setAttributes(self, node)
Sets up attribute dictionary, checks for required attributes and 
sets default attribute values. attr is for default attribute values 
determined at runtime.
 
structure of attributes dictionary
    ['xmlns'][xmlns_key] --  xmlns namespace
    ['xmlns'][prefix] --  declared namespace prefix 
    [namespace][prefix] -- attributes declared in a namespace
    [attribute] -- attributes w/o prefix, default namespaces do
        not directly apply to attributes, ie Name can't collide 
        with QName.

Data and other attributes inherited from XMLSchemaComponent:
required = []
xml = 'xml'
xmlns = 'xmlns'
xmlns_key = ''

Methods inherited from XMLBase:
__str__(self)

Methods inherited from MarkerInterface:
isAll(self)
isAttribute(self)
isAttributeGroup(self)
isChoice(self)
isComplex(self)
isDeclaration(self)
isDefinition(self)
isElement(self)
isExtension(self)
isList(self)
isLocal(self)
isModelGroup(self)
isReference(self)
isRestriction(self)
isSequence(self)
isSimple(self)
isUnion(self)
isWildCard(self)

 
class XMLSchemaComponent(XMLBase, MarkerInterface)
    class variables: 
    required -- list of required attributes
    attributes -- dict of default attribute values, including None.
        Value can be a function for runtime dependencies.
    contents -- dict of namespace keyed content lists.
        'xsd' content of xsd namespace.
    xmlns_key -- key for declared xmlns namespace.
    xmlns -- xmlns is special prefix for namespace dictionary
    xml -- special xml prefix for xml namespace.
 
 
Method resolution order:
XMLSchemaComponent
XMLBase
MarkerInterface

Methods defined here:
__init__(self, parent=None)
parent -- parent instance
instance variables:
    attributes -- dictionary of node's attributes
getAttribute(self, attribute)
return requested attribute value or None
getAttributeDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeGroup(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getAttributeName(self)
return attribute name or None
getAttributeQName(self, attribute)
return requested attribute value as (namespace,name) or None
getContents(self, node)
retrieve xsd contents
getElementDeclaration(self, attribute)
attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
getItemTrace(self)
Returns a node trace up to the <schema> item.
getModelGroup(self, attribute)
attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
getQNameAttribute(self, collection, attribute)
returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
getSchemaItem(self, collection, namespace, name)
returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
 
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
getTargetNamespace(self)
return targetNamespace
getTypeDefinition(self, attribute)
attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
getXMLNS(self, prefix=None)
deference prefix or by default xmlns, returns namespace.
setAttributes(self, node)
Sets up attribute dictionary, checks for required attributes and 
sets default attribute values. attr is for default attribute values 
determined at runtime.
 
structure of attributes dictionary
    ['xmlns'][xmlns_key] --  xmlns namespace
    ['xmlns'][prefix] --  declared namespace prefix 
    [namespace][prefix] -- attributes declared in a namespace
    [attribute] -- attributes w/o prefix, default namespaces do
        not directly apply to attributes, ie Name can't collide 
        with QName.

Data and other attributes defined here:
attributes = {}
contents = {}
required = []
xml = 'xml'
xmlns = 'xmlns'
xmlns_key = ''

Methods inherited from XMLBase:
__str__(self)

Data and other attributes inherited from XMLBase:
tag = None

Methods inherited from MarkerInterface:
isAll(self)
isAttribute(self)
isAttributeGroup(self)
isChoice(self)
isComplex(self)
isDeclaration(self)
isDefinition(self)
isElement(self)
isExtension(self)
isList(self)
isLocal(self)
isModelGroup(self)
isReference(self)
isRestriction(self)
isSequence(self)
isSimple(self)
isUnion(self)
isWildCard(self)

 
class XMLSchemaFake
     Methods defined here:
__init__(self, element)
# This is temporary, for the benefit of WSDL until the real thing works.

 
Functions
       
GetSchema(component)
convience function for finding the parent XMLSchema instance.

 
Data
        ATTRIBUTES = 'attr_decl'
ATTRIBUTE_GROUPS = 'attr_groups'
BUILT_IN_NAMESPACES = ['http://schemas.xmlsoap.org/soap/encoding/', 'http://www.w3.org/1999/XMLSchema', 'http://www.w3.org/2000/10/XMLSchema', 'http://www.w3.org/2001/XMLSchema']
DOM = <Utility.DOM instance>
ELEMENTS = 'elements'
MODEL_GROUPS = 'model_groups'
TYPES = 'types'
ident = '$Id: XMLSchema.py 1416 2007-10-01 19:56:26Z boverhof $'