Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/sissaschool/xmlschema
/ functions
Functions
2,466 in github.com/sissaschool/xmlschema
⨍
Functions
2,466
◇
Types & classes
351
↳
Endpoints
20
↓ 4 callers
Method
is_complex
()
xmlschema/validators/simple_types.py:359
↓ 4 callers
Method
is_derived
(self, other: BaseXsdType, derivation: str | None = None)
xmlschema/validators/simple_types.py:962
↓ 4 callers
Method
is_global
Returns `True` if the instance is a global component, `False` if it's local.
xmlschema/validators/xsdbase.py:324
↓ 4 callers
Method
is_union
Returns `True` if the instance is a union simpleType, `False` otherwise.
xmlschema/validators/xsdbase.py:785
↓ 4 callers
Method
is_valid
Like :meth:`validate` except that does not raise an exception but returns ``True`` if the XML data instance is valid, ``False`` if it
xmlschema/validators/schemas.py:1266
↓ 4 callers
Method
iter_ancestors
(self)
xmlschema/validators/xsd_globals.py:410
↓ 4 callers
Method
iter_subgroups
Iterates all subgroups where the provided particle is present. Raises an `XMLSchemaModelError` if the argument is not a particle of t
xmlschema/validators/groups.py:394
↓ 4 callers
Method
iterfind
Creates and iterator for all XSD subelements matching the path. :param path: an XPath expression that considers the data element as
xmlschema/dataobjects.py:413
↓ 4 callers
Method
load_namespace
Load namespace from available location hints. Returns `True` if the namespace is already loaded or if the namespace can be loaded fro
xmlschema/validators/schemas.py:1043
↓ 4 callers
Function
logged
A decorator for activating a logging level for a function. The keyword argument 'loglevel' is obtained from the keyword arguments and used by
xmlschema/utils/logger.py:41
↓ 4 callers
Method
raw_decode
(self, obj: str | bytes, validation: str, context: ValidationContext)
xmlschema/validators/simple_types.py:490
↓ 4 callers
Method
restriction
(self, xsd_type, *names)
xmlschema/extras/codegen.py:554
↓ 4 callers
Function
run_timeit
(stmt='pass', setup='pass', number=1000)
profiling/profile_resources.py:16
↓ 4 callers
Method
seekable
(self)
xmlschema/utils/protocols.py:25
↓ 4 callers
Method
validated_value
(self, value: Any)
xmlschema/arguments.py:100
↓ 3 callers
Method
__init__
(self, elem: ElementType, schema: SchemaType, parent: Union['XsdAtomicBuilti
xmlschema/validators/facets.py:52
↓ 3 callers
Method
__new__
(cls)
xmlschema/utils/decoding.py:22
↓ 3 callers
Method
_any_content_group_fallback
(self)
xmlschema/validators/groups.py:489
↓ 3 callers
Method
_get_xpath_context
(self)
xmlschema/dataobjects.py:378
↓ 3 callers
Method
_parse
(self)
xmlschema/validators/groups.py:497
↓ 3 callers
Method
_parse
(self)
xmlschema/validators/identities.py:349
↓ 3 callers
Method
_validate_references
(self, validation: str, context: ValidationContext)
xmlschema/validators/schemas.py:1393
↓ 3 callers
Method
bind_parser
(self, parser: XPath2Parser)
xmlschema/xpath/proxy.py:50
↓ 3 callers
Method
build
Builds the schema's XSD global maps.
xmlschema/validators/schemas.py:843
↓ 3 callers
Function
casepath
(relative_path)
tests/test_codegen.py:81
↓ 3 callers
Function
check_elem_type
(xsd_element: XsdElementProtocol)
tests/test_cases/mypy/protocols.py:28
↓ 3 callers
Method
check_namespace_prefixes
Checks that a string doesn't contain protected prefixes (ns0, ns1 ...).
xmlschema/testing/_test_case_classes.py:148
↓ 3 callers
Method
clear
(self)
xmlschema/namespaces.py:143
↓ 3 callers
Method
clear
(self)
xmlschema/validators/models.py:210
↓ 3 callers
Method
clear
(self)
xmlschema/extras/wsdl.py:62
↓ 3 callers
Method
clear
(cls)
xmlschema/testing/_observers.py:60
↓ 3 callers
Method
clear_bindings
(self)
xmlschema/validators/xsd_globals.py:387
↓ 3 callers
Method
create_any_attribute_group
Creates a local child attribute group for a complex type or an element that accepts any attribute.
xmlschema/validators/builders.py:253
↓ 3 callers
Method
create_any_type
Creates a xs:anyType equivalent type related with the wildcards connected to global maps of the schema instance in order to do a
xmlschema/validators/builders.py:278
↓ 3 callers
Method
create_element
Helper method for creating an XSD element.
xmlschema/validators/schemas.py:833
↓ 3 callers
Method
create_empty_attribute_group
Creates an empty local child attribute group for a complex type or an element.
xmlschema/validators/builders.py:269
↓ 3 callers
Method
decode_error
(self, validation: str, validator: 'XsdValidator',
xmlschema/validators/validation.py:303
↓ 3 callers
Method
derivation
(self, xsd_type, *names)
xmlschema/extras/codegen.py:546
↓ 3 callers
Method
element_encode
(self, obj: Any, xsd_element: 'XsdElement', level: int = 0)
xmlschema/converters/gdata.py:120
↓ 3 callers
Method
get_absolute_path
(self, path: Optional[str] = None)
xmlschema/resources/xml_loader.py:207
↓ 3 callers
Method
get_parent_type
Returns the nearest XSD type that contains the component instance, or `None` if the component doesn't have an XSD type parent.
xmlschema/validators/xsdbase.py:598
↓ 3 callers
Method
get_resource_from_data
Returns a :class:`xmlschema.XMLResource` instance from XML data. Build a dummy Element if the source is a dictionary or an atomic val
xmlschema/settings.py:230
↓ 3 callers
Method
get_xmlns_from_data
Returns the XML declarations from decoded element data.
xmlschema/namespaces.py:148
↓ 3 callers
Method
get_xmlns_from_data
(self, obj: Any)
xmlschema/converters/badgerfish.py:48
↓ 3 callers
Method
get_xpath_node
Returns an XPath node for the element, fetching it from the XPath root node. Returns a new lazy element node if the matching element
xmlschema/resources/xml_loader.py:193
↓ 3 callers
Method
import_schema
Imports a schema for an external namespace from a specific location. :param namespace: is the URI of the external namespace.
xmlschema/validators/schemas.py:991
↓ 3 callers
Method
insert
(self, i: int, child: 'DataElement')
xmlschema/dataobjects.py:107
↓ 3 callers
Function
int_validator
(value: int)
xmlschema/validators/helpers.py:180
↓ 3 callers
Method
is_ambiguous
Tests if min_occurs != max_occurs.
xmlschema/validators/particles.py:101
↓ 3 callers
Method
is_consistent
Element Declarations Consistent check between two element particles. Ref: https://www.w3.org/TR/xmlschema-1/#cos-element-consistent
xmlschema/validators/elements.py:1220
↓ 3 callers
Method
is_datetime
Returns `True` if the instance is a datetime/duration XSD builtin-type, `False` otherwise.
xmlschema/validators/xsdbase.py:789
↓ 3 callers
Method
is_derived
(self, other: BaseXsdType, derivation: Optional[str] = None)
xmlschema/validators/complex_types.py:647
↓ 3 callers
Method
is_derived
Returns `True` if the argument XSD type is derived from any of other types expressed by name, otherwise returns `False`. :pa
xmlschema/extras/codegen.py:512
↓ 3 callers
Method
is_dynamic_consistent
(self, other: Any)
xmlschema/validators/xsdbase.py:859
↓ 3 callers
Method
is_emptiable
(self)
xmlschema/validators/complex_types.py:564
↓ 3 callers
Method
is_list
(self)
xmlschema/validators/simple_types.py:958
↓ 3 callers
Method
is_overlap
(self, other: SchemaElementType)
xmlschema/validators/elements.py:1206
↓ 3 callers
Function
is_valid
Like :meth:`validate` except that do not raise an exception but returns ``True`` if the XML document is valid, ``False`` if it's invalid.
xmlschema/documents.py:190
↓ 3 callers
Method
iter
Creates an iterator for the XSD element and its subelements. If tag is not `None` or '*', only XSD elements whose matches tag are ret
xmlschema/xpath/mixin.py:139
↓ 3 callers
Method
iter
(self, tag: Optional[str] = None)
xmlschema/validators/wildcards.py:489
↓ 3 callers
Method
iter_components
(self, xsd_classes: Optional[ComponentClassType] = None)
xmlschema/validators/elements.py:535
↓ 3 callers
Method
iter_components
Iterates yielding the schema and its components. For default includes all the relevant components of the schema, excluding on
xmlschema/validators/schemas.py:892
↓ 3 callers
Function
iter_errors
Creates an iterator for the errors generated by the validation of an XML document. Takes the same arguments of the function :meth:`validate`.
xmlschema/documents.py:210
↓ 3 callers
Method
iter_globals
Iterates XSD global definitions/declarations of the schema.
xmlschema/validators/schemas.py:878
↓ 3 callers
Method
iter_location_hints
Yields all schema location hints of the XML resource. If tag is not None or '*', only location hints of elements whose tag eq
xmlschema/resources/xml_resource.py:581
↓ 3 callers
Function
iter_unordered_content
Takes an unordered content stored in a dictionary of lists and yields the content elements sorted with the ordering defined by the model grou
xmlschema/validators/models.py:819
↓ 3 callers
Function
iterfind_parser
Returns an iterparse function that yields elements that match the given path.
xmlschema/resources/parsers.py:117
↓ 3 callers
Method
iterparse
(fp, events)
tests/test_resources.py:1446
↓ 3 callers
Method
list_templates
(self, extensions=None, filter_func=None)
xmlschema/extras/codegen.py:203
↓ 3 callers
Function
long_validator
(value: int)
xmlschema/validators/helpers.py:186
↓ 3 callers
Method
lookup
General lookup method for XSD global components. :param tag: the expanded QName of the XSD the global declaration/definition \
xmlschema/validators/xsd_globals.py:241
↓ 3 callers
Method
match_location
Matches the location with the URL the XML resource. URL schemes are compared
xmlschema/resources/xml_resource.py:305
↓ 3 callers
Method
missing_element_error
(self, validation: str, validator: 'XsdValidator',
xmlschema/validators/validation.py:282
↓ 3 callers
Method
multi_sequence
(xsd_type)
xmlschema/extras/codegen.py:559
↓ 3 callers
Function
negative_int_validator
(value: int)
xmlschema/validators/helpers.py:216
↓ 3 callers
Method
parse
(self, elem: ElementType)
xmlschema/validators/simple_types.py:881
↓ 3 callers
Function
parse_xmlschema_args
Parse CLI arguments removing xmlschema's additional arguments after parsing.
xmlschema/testing/_factory.py:81
↓ 3 callers
Method
protect_status
Context manager for set a restore point in case of error.
xmlschema/validators/xsd_globals.py:581
↓ 3 callers
Method
raw_decode
Decoding an Element content. :param obj: an Element. :param validation: the validation mode. Can be 'lax', 'strict' or 'skip
xmlschema/validators/groups.py:953
↓ 3 callers
Method
raw_decode
(self, obj: str | bytes, validation: str, context: ValidationContext)
xmlschema/validators/simple_types.py:991
↓ 3 callers
Method
raw_decode
Internal decode method. Takes the same arguments as *decode*, but keyword arguments are replaced with a decode context. Returns a dec
xmlschema/validators/validation.py:653
↓ 3 callers
Method
raw_encode
(self, obj: Any, validation: str, context: EncodeContext)
xmlschema/validators/simple_types.py:1021
↓ 3 callers
Function
run_timeit
(stmt='pass', setup='pass', number=1000)
profiling/profile_etree.py:19
↓ 3 callers
Function
set_logging_level
set logging level of xmlschema's logger.
xmlschema/utils/logger.py:25
↓ 3 callers
Function
strictly_equal
Checks if the objects are equal and are of the same type.
xmlschema/utils/decoding.py:67
↓ 3 callers
Method
test
(self, elem: ElementType)
xmlschema/validators/elements.py:1568
↓ 3 callers
Function
to_dict
Decodes an XML document to a Python's nested dictionary. Takes the same arguments of the function :meth:`iter_decode`, but *validation* mode
xmlschema/documents.py:275
↓ 3 callers
Method
tostring
Serializes the XML elements that declare or define the component to a string.
xmlschema/validators/xsdbase.py:640
↓ 3 callers
Method
unmap_qname
(self, qname)
xmlschema/extras/wsdl.py:104
↓ 3 callers
Function
unsigned_byte_validator
(value: int)
xmlschema/validators/helpers.py:192
↓ 3 callers
Function
unsigned_short_validator
(value: int)
xmlschema/validators/helpers.py:198
↓ 3 callers
Function
xsd_qname
(name)
xmlschema/extras/codegen.py:45
↓ 2 callers
Method
__init__
(self, tag: str, value: Optional[Any] = None, attrib: Optional[dict[str, Any
xmlschema/dataobjects.py:57
↓ 2 callers
Method
__init__
(self, validation: str = 'strict')
xmlschema/validators/xsdbase.py:62
↓ 2 callers
Method
__init__
(self, elem: ElementType, schema: SchemaType, parent: Optional['XsdIdentity'])
xmlschema/validators/identities.py:68
↓ 2 callers
Method
__init__
(self, root: ModelGroupType)
xmlschema/validators/models.py:197
↓ 2 callers
Method
__init__
(self, elem: ElementType, schema: SchemaType, parent: XsdComponent)
xmlschema/validators/wildcards.py:414
↓ 2 callers
Method
__setattr__
(self, name: str, value: Any)
xmlschema/validators/schemas.py:436
↓ 2 callers
Method
_build_global
(self, qname: str)
xmlschema/validators/builders.py:500
↓ 2 callers
Method
_cached_properties
(cls)
xmlschema/validators/xsdbase.py:73
← previous
next →
301–400 of 2,466, ranked by callers