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
↓ 7 callers
Method
has_mixed_content
Returns `True` if the instance is a complexType with mixed content, `False` otherwise.
xmlschema/validators/xsdbase.py:816
↓ 7 callers
Method
increase
(self, fields: IdentityCounterType)
xmlschema/validators/identities.py:400
↓ 7 callers
Method
is_complex
Returns `True` if the instance is a complexType, `False` otherwise.
xmlschema/validators/xsdbase.py:769
↓ 7 callers
Method
is_element_only
Returns `True` if the instance is a complexType with element-only content, `False` otherwise.
xmlschema/validators/xsdbase.py:822
↓ 7 callers
Function
is_encoded_url
Determines whether the given URL is encoded. The case with '+' and without spaces is not univocal and the plus signs are ignored for the resu
xmlschema/utils/urls.py:144
↓ 7 callers
Function
is_etree_document
A validator for ElementTree objects.
xmlschema/utils/etree.py:32
↓ 7 callers
Method
is_key
(self)
xmlschema/validators/xsdbase.py:862
↓ 7 callers
Method
is_matching
(self, name: Optional[str], default_namespace: Optional[str] = None, *
xmlschema/validators/wildcards.py:164
↓ 7 callers
Function
is_subclass
A safe subclass checker.
xmlschema/utils/misc.py:20
↓ 7 callers
Function
iter_class_slots
Iterates slots defined for a class and its bases.
xmlschema/utils/misc.py:25
↓ 7 callers
Method
iterchildren
Creates an iterator for the child data elements. If *tag* is not `None` or '*', only data elements whose name matches tag are returne
xmlschema/dataobjects.py:219
↓ 7 callers
Method
load_schema
Loads a schema from a location. :param source: a URI that reference to a resource or a file path or a file-like \ object or
xmlschema/loaders.py:289
↓ 7 callers
Method
match_child
(self, name: str)
xmlschema/validators/elements.py:1112
↓ 7 callers
Function
prune_etree
Removes from a tree structure the elements that verify the selector function. The checking and eventual removals are performed using a br
xmlschema/utils/etree.py:177
↓ 7 callers
Function
raw_encode_attributes
(attributes: DecodedAttributesType = None)
xmlschema/utils/decoding.py:84
↓ 7 callers
Method
run_xml2json
(self, *args)
tests/test_cli.py:37
↓ 7 callers
Method
subresource
Create an XMLResource instance from a subelement of a non-lazy XML tree.
xmlschema/resources/xml_resource.py:403
↓ 7 callers
Method
validate
Validates an XML data against the XSD schema/component instance. :param source: the source of XML data. Can be an :class:`XMLResourc
xmlschema/validators/schemas.py:1214
↓ 6 callers
Method
_parse_reference
Helper method for referable components. Returns `True` if a valid reference QName is found without any error, otherwise returns `None
xmlschema/validators/xsdbase.py:407
↓ 6 callers
Function
advance
(condition: Callable[[str], bool])
xmlschema/xpath/selectors.py:63
↓ 6 callers
Method
check_following
Returns `True` if the model can be advanced without errors applying the provided sequence of steps. :param steps: sequence o
xmlschema/validators/models.py:696
↓ 6 callers
Method
clear
(self)
xmlschema/loaders.py:66
↓ 6 callers
Method
encode
Encodes to XML data. Takes the same arguments of the method :meth:`iter_encode`. :return: An ElementTree's Element or a list contain
xmlschema/validators/schemas.py:1761
↓ 6 callers
Method
encode_error
(self, validation: str, validator: 'XsdValidator',
xmlschema/validators/validation.py:400
↓ 6 callers
Function
etree_get_ancestors
Returns a list with ancestors of `elem`, `None` if `elem` is not a descendant of `root`.
xmlschema/utils/etree.py:47
↓ 6 callers
Function
from_json
Deserialize JSON data to an XML Element. :param source: can be a string or a :meth:`read()` supporting file-like object \ containing the
xmlschema/documents.py:456
↓ 6 callers
Function
get_converter
(name)
xmlschema/cli.py:60
↓ 6 callers
Method
get_converter
Returns a new converter instance. :param converter: can be a converter class or instance. If not provided the \ converter se
xmlschema/validators/schemas.py:917
↓ 6 callers
Method
get_effective_xmlns
Returns the effective xmlns for element decoding/encoding, considering the level and the matching XSD element. At level 0, that is th
xmlschema/converters/base.py:307
↓ 6 callers
Method
get_expected
Returns the expected elements of the current and descendant groups given a counter of occurrences. Returns an empty list if the group
xmlschema/validators/groups.py:458
↓ 6 callers
Function
get_loglevel
(verbosity)
xmlschema/cli.py:49
↓ 6 callers
Method
get_model_visitor
(self)
xmlschema/validators/groups.py:425
↓ 6 callers
Method
get_xml_resource
Returns a :class:`xmlschema.XMLResource` instance for the given XML source using schema settings.
xmlschema/settings.py:207
↓ 6 callers
Function
hex_binary_validator
(value: Union[str, datatypes.HexBinary])
xmlschema/validators/helpers.py:240
↓ 6 callers
Method
increase
(self, fields: IdentityCounterType)
xmlschema/validators/identities.py:385
↓ 6 callers
Function
is_local_scheme
(scheme: str)
xmlschema/utils/urls.py:24
↓ 6 callers
Method
is_optional
Tests if the particle can be omitted in the current model status. Defaults to current element.
xmlschema/validators/models.py:607
↓ 6 callers
Method
is_qname
(self)
xmlschema/validators/xsdbase.py:865
↓ 6 callers
Function
is_safe_url
Determines whether the given URL is safe.
xmlschema/utils/urls.py:154
↓ 6 callers
Method
iter_globals
(self)
xmlschema/validators/builders.py:682
↓ 6 callers
Function
iter_schema_location_hints
Yields schema location hints contained in the attributes of an element.
xmlschema/utils/etree.py:128
↓ 6 callers
Function
normalize_locations
Returns a list of normalized locations. The locations are normalized using the base URL of the instance. :param locations: a dictionary
xmlschema/utils/urls.py:282
↓ 6 callers
Function
qname_validator
(value: str)
xmlschema/validators/helpers.py:162
↓ 6 callers
Method
run_json2xml
(self, *args)
tests/test_cli.py:42
↓ 6 callers
Method
seek
Change stream position if the XML resource was created with a seekable file-like object. In the other cases this method has no effect
xmlschema/resources/xml_resource.py:497
↓ 6 callers
Method
select
(self, root: Union[ElementType, 'XMLResource'])
xmlschema/xpath/selectors.py:204
↓ 6 callers
Method
simple_type_factory
Factory function for XSD simple types. Parses the xs:simpleType element and its child component, that can be a restriction, a list or
xmlschema/validators/builders.py:314
↓ 6 callers
Method
stop
Stop the model and returns the errors, if any.
xmlschema/validators/models.py:243
↓ 6 callers
Function
to_json
Serialize an XML document to JSON. For default the XML data is validated during the decoding phase. Raises an :exc:`XMLSchemaValidationError`
xmlschema/documents.py:301
↓ 6 callers
Method
to_objects
Decodes XML data to Python data objects. :param obj: the XML data source. :param with_bindings: if `True` is provided the de
xmlschema/validators/elements.py:920
↓ 6 callers
Function
uri_from_path
(path, suppress_warning=True)
tests/test_locations.py:99
↓ 6 callers
Function
xmlschema_tests_factory
Factory function for file based schema/validation cases. :param test_class_builder: the test class builder function. :param testfiles: a
xmlschema/testing/_factory.py:187
↓ 5 callers
Method
_clear
(self, elem: ElementType, ancestors: Optional[list[ElementType]] = None)
xmlschema/resources/xml_loader.py:331
↓ 5 callers
Method
_mro_slots
(cls)
xmlschema/validators/xsdbase.py:67
↓ 5 callers
Method
advance_until
Advances until an element matching `target` is found. Stops after an error in advancing. If the model ends before the tag is found,
xmlschema/validators/models.py:657
↓ 5 callers
Function
check_validation_mode
(validation: str)
xmlschema/arguments.py:342
↓ 5 callers
Method
close
Close the XML resource if it's created with a file-like object. In other cases this method has no effect.
xmlschema/resources/xml_resource.py:504
↓ 5 callers
Function
defuse_xml
Defuses an XML source using a file-like object. For default the file-like object must be seekable because the file-like object is rewound to
xmlschema/resources/sax.py:45
↓ 5 callers
Function
download_schemas
Download one or more schemas from a URL and save them in a target directory. All the referred locations in schema sources are downloaded and
xmlschema/exports.py:287
↓ 5 callers
Method
get_converter
Returns a new converter instance, with a fallback to the optional converter saved with the settings. :param converter: can b
xmlschema/settings.py:286
↓ 5 callers
Method
get_etree_document
The resource as ElementTree XML document. If the resource is lazy raises a resource error.
xmlschema/documents.py:601
↓ 5 callers
Method
get_instance_type
Returns the instance XSI type from global maps, validating it with the reference base type. :param type_name: the XSI type attribute
xmlschema/validators/xsd_globals.py:285
↓ 5 callers
Method
get_locations
(self, namespace: str, location: Optional[str] = None)
xmlschema/loaders.py:70
↓ 5 callers
Method
get_locations
Extracts a list of schema location hints from the XML resource. The locations are normalized using the base URL of the instance.
xmlschema/resources/xml_resource.py:784
↓ 5 callers
Method
get_xmlns_from_data
(self, obj: Any)
xmlschema/converters/gdata.py:63
↓ 5 callers
Method
iter_components
Creates an iterator for the XSD components of built schemas.
xmlschema/validators/xsd_globals.py:392
↓ 5 callers
Function
iter_nested_items
Iterates a nested object composed by lists and dictionaries.
xmlschema/testing/_helpers.py:20
↓ 5 callers
Function
location_is_file
(url: str)
xmlschema/utils/urls.py:271
↓ 5 callers
Method
match_element
Try a model-less match of a child element. Returns the matched element, or `None` if there is no match.
xmlschema/validators/groups.py:943
↓ 5 callers
Method
meta_tag
The reference tag for the component type.
xmlschema/validators/xsdbase.py:247
↓ 5 callers
Method
parse_error
(self, message: Any)
xmlschema/validators/particles.py:140
↓ 5 callers
Method
raise_or_collect
(self, validation: str, error: XMLSchemaValidationError)
xmlschema/validators/validation.py:216
↓ 5 callers
Method
read
(self, size: Optional[int] = None)
xmlschema/utils/streams.py:103
↓ 5 callers
Method
reset
(self)
xmlschema/validators/particles.py:229
↓ 5 callers
Function
run_timeit
(stmt='pass', setup='pass', number=1000)
profiling/profile_context_manager.py:14
↓ 5 callers
Method
text_is_valid
(self, text: str, context: Optional[ValidationContext] = None)
xmlschema/validators/xsdbase.py:881
↓ 5 callers
Method
tostring
Serialize an XML resource to a string. :param namespaces: is an optional mapping from namespace prefix to URI. \ Provided na
xmlschema/resources/xml_resource.py:362
↓ 4 callers
Method
__init__
(self, elem: ElementType, schema: SchemaType, parent: XsdComponent | None,
xmlschema/validators/simple_types.py:865
↓ 4 callers
Method
_parse
(self)
xmlschema/validators/wildcards.py:71
↓ 4 callers
Method
_parse_value
(self, elem: ElementType)
xmlschema/validators/facets.py:633
↓ 4 callers
Method
_parse_value
(self, elem: ElementType)
xmlschema/validators/facets.py:755
↓ 4 callers
Method
add_precedence
(self, other: ModelParticleType, group: ModelGroupType)
xmlschema/validators/wildcards.py:799
↓ 4 callers
Method
as_dict
(self)
xmlschema/namespaces.py:395
↓ 4 callers
Function
base64_binary_validator
(value: Union[str, datatypes.Base64Binary])
xmlschema/validators/helpers.py:247
↓ 4 callers
Method
check_etree_elements
Checks if two ElementTree elements are equal.
xmlschema/testing/_test_case_classes.py:139
↓ 4 callers
Method
clear
Clears the schema caches unloading components and schema node tree.
xmlschema/validators/schemas.py:838
↓ 4 callers
Function
dump_data
Dump data to logger for debugging purposes.
xmlschema/utils/logger.py:74
↓ 4 callers
Function
flush
()
xmlschema/xpath/selectors.py:57
↓ 4 callers
Function
format_xmlschema_stack
Extract a formatted traceback for xmlschema package from current stack frame.
xmlschema/utils/logger.py:64
↓ 4 callers
Method
fromsource
(cls, source: Union[XMLSourceType, XMLResource], allow: str = 'all', defuse: str = 'remote'
xmlschema/dataobjects.py:452
↓ 4 callers
Method
get_add_info
(cls, error: Optional[XMLSchemaException] = None, *files)
tests/run_w3c_tests.py:374
↓ 4 callers
Method
get_atomic_value
(self, value: AtomicValueType, namespaces: NsmapType | None = None,
xmlschema/validators/simple_types.py:986
↓ 4 callers
Method
get_elem_as_string
Returns a string representation of elem attribute.
xmlschema/validators/exceptions.py:184
↓ 4 callers
Function
get_locations
Returns a NamespaceResourcesMap with location hints provided at schema initialization.
xmlschema/locations.py:72
↓ 4 callers
Method
get_namespaces
Returns an overall namespace map for DetaElement, resolving prefix redefinitions. :param namespaces: builds the namespace map starti
xmlschema/dataobjects.py:230
↓ 4 callers
Method
get_path
Returns the XPath expression of the element. The path is relative to the schema instance in which the element is contained or is rela
xmlschema/validators/elements.py:511
↓ 4 callers
Method
get_schema_source
Returns a schema source that can be used to create an XMLSchema instance. :param source: A string or an ElementTree's Element.
xmlschema/testing/_test_case_classes.py:96
↓ 4 callers
Method
get_template
(self, name, parent=None, global_vars=None)
xmlschema/extras/codegen.py:209
↓ 4 callers
Function
get_xsd_annotation
Returns the XSD annotation from the 1st child element of the provided element, `None` if it doesn't exist.
xmlschema/validators/helpers.py:32
↓ 4 callers
Method
include_schema
Includes a schema for the same namespace, from a specific URL. :param location: is the URL of the schema. :param base_url: i
xmlschema/validators/schemas.py:976
← previous
next →
201–300 of 2,466, ranked by callers