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
↓ 14 callers
Method
_parse_reference
(self, elem, attribute_name)
xmlschema/extras/wsdl.py:107
↓ 14 callers
Function
encode_url
Encode the given url, if necessary.
xmlschema/utils/urls.py:168
↓ 14 callers
Method
get_model_particle
Checks if the provided particle belongs to the current model, raising a `XMLSchemaModelError` in case if it's not. Defaults to curren
xmlschema/validators/models.py:531
↓ 14 callers
Function
is_lxml_element
A validator for lxml elements.
xmlschema/utils/etree.py:37
↓ 14 callers
Method
text_decode
(self, text: str, validation: str = 'skip', context: Optional[ValidationContext] = None)
xmlschema/validators/xsdbase.py:877
↓ 13 callers
Method
check_url
(self, url, expected)
tests/test_resources.py:92
↓ 13 callers
Method
check_validator
Checks the status of a schema validator against a validation mode.
xmlschema/validators/xsdbase.py:129
↓ 13 callers
Function
distinguishable_paths
Checks if two model paths are distinguishable in a deterministic way, without looking forward or backtracking. The arguments are lists contai
xmlschema/validators/models.py:36
↓ 13 callers
Method
find
(self, path: str, namespaces: Optional[NsmapType] = None, ancestors: Optional[list[E
xmlschema/resources/xml_resource.py:726
↓ 13 callers
Method
is_exceeded
Tests if particle occurrences are over the maximum. If the argument is `None` then tests the current element.
xmlschema/validators/models.py:629
↓ 13 callers
Method
iter_depth
Iterates XML subtrees. For fully loaded resources yields the root element. On lazy resources the argument *mode* can change the seque
xmlschema/resources/xml_resource.py:590
↓ 13 callers
Method
map_qname
(self, qname: str)
xmlschema/converters/gdata.py:49
↓ 13 callers
Method
normalize
(self)
xmlschema/utils/paths.py:145
↓ 13 callers
Function
parse_xpath_default_namespace
Parse XSD 1.1 xpathDefaultNamespace attribute for schema, alternative, assert, assertion and selector declarations, checking if the value is
xmlschema/validators/helpers.py:99
↓ 13 callers
Method
system
(self)
xmlschema/validators/notations.py:50
↓ 12 callers
Method
casepath
Returns the absolute path of a test case from its relative path.
xmlschema/testing/_test_case_classes.py:41
↓ 12 callers
Method
check_stop
Stops a model and checks the expected errors list. :param model: an ModelGroupVisitor instance. :param expected: can be an e
tests/validators/test_models.py:103
↓ 12 callers
Method
get_matching_item
If a key is matching component name, returns its value, otherwise returns `None`.
xmlschema/validators/xsdbase.py:547
↓ 12 callers
Method
is_namespace_allowed
(self, namespace: str)
xmlschema/validators/wildcards.py:176
↓ 12 callers
Method
is_pointless
Returns `True` if the group may be eliminated without affecting the model, `False` otherwise. A group is pointless if one of those co
xmlschema/validators/groups.py:181
↓ 12 callers
Method
is_restriction
(self, other: ModelParticleType, check_occurs: bool = True)
xmlschema/validators/groups.py:680
↓ 12 callers
Function
match_location
Match a URL against a group of locations. Give priority to exact matches, then to the match with the highest score after filtering out the lo
xmlschema/utils/urls.py:311
↓ 12 callers
Function
parse_xsd_derivation
Get a derivation attribute (maybe 'block', 'blockDefault', 'final' or 'finalDefault') checking the items with the values arguments. Returns a
xmlschema/validators/helpers.py:65
↓ 11 callers
Method
_parse_particle
(self, elem: ElementType)
xmlschema/validators/particles.py:143
↓ 11 callers
Method
create_element
Creates a xs:element instance related to schema component. Used as dummy element for validation/decoding/encoding operations
xmlschema/validators/builders.py:300
↓ 11 callers
Method
has_simple_content
(self)
xmlschema/validators/complex_types.py:567
↓ 11 callers
Method
intersection
Update an XSD wildcard with the intersection of itself and another XSD wildcard.
xmlschema/validators/wildcards.py:339
↓ 11 callers
Method
is_empty
(self)
xmlschema/validators/complex_types.py:559
↓ 11 callers
Method
is_list
Returns `True` if the instance is a list simpleType, `False` otherwise.
xmlschema/validators/xsdbase.py:781
↓ 11 callers
Method
iter_components
(self, xsd_classes: Optional[ComponentClassType] = None)
xmlschema/validators/groups.py:651
↓ 11 callers
Method
iter_substitutes
(self)
xmlschema/validators/elements.py:550
↓ 11 callers
Method
iterfind
Apply XPath selection to XML resource that yields full subtrees. :param path: an XPath 2.0 expression that selects element nodes. \
xmlschema/resources/xml_resource.py:658
↓ 11 callers
Function
run_timeit
(stmt='pass', setup='pass', number=1000)
profiling/profile_context.py:16
↓ 11 callers
Method
union
Update an XSD wildcard with the union of itself and another XSD wildcard.
xmlschema/validators/wildcards.py:269
↓ 10 callers
Method
_set_type
(self, value: BaseXsdType)
xmlschema/validators/elements.py:150
↓ 10 callers
Method
casepath
(cls, relative_path)
tests/test_dataobjects.py:101
↓ 10 callers
Method
clear
(self, elem: ElementType)
xmlschema/resources/xml_loader.py:169
↓ 10 callers
Method
find
Finds the first XSD subelement matching the path. :param path: an XPath expression that considers the XSD component as the root elem
xmlschema/xpath/mixin.py:96
↓ 10 callers
Method
has_simple_content
Returns `True` if the instance has a simple content, `False` otherwise.
xmlschema/validators/xsdbase.py:803
↓ 10 callers
Method
is_missing
Returns `True` if the given location hint is missing, `False` otherwise.
xmlschema/loaders.py:360
↓ 10 callers
Method
is_missing
Tests if particle occurrences are under the minimum. If the argument is `None` then tests the current element.
xmlschema/validators/models.py:615
↓ 10 callers
Method
is_simple
()
xmlschema/validators/complex_types.py:552
↓ 10 callers
Method
is_single
(self)
xmlschema/validators/groups.py:173
↓ 10 callers
Method
is_univocal
Tests if min_occurs == max_occurs.
xmlschema/validators/particles.py:105
↓ 10 callers
Method
iter_elements
A generator function iterating model's elements. Raises `XMLSchemaModelDepthError` if the overall depth of the model groups is over `
xmlschema/validators/groups.py:350
↓ 10 callers
Method
run_validate
(self, *args)
tests/test_cli.py:32
↓ 10 callers
Function
to_etree
Encodes a data structure/object to an ElementTree's Element. :param obj: the Python object that has to be encoded to XML data. :param sc
xmlschema/documents.py:377
↓ 10 callers
Method
type_name
Get the unqualified name of the XSD type. Invalid chars for identifiers are replaced by an underscore. :param obj: an instan
xmlschema/extras/codegen.py:407
↓ 9 callers
Method
__init__
(self, elem, wsdl_document)
xmlschema/extras/wsdl.py:293
↓ 9 callers
Method
_parse_content_tail
(self, elem: ElementType, **kwargs: Any)
xmlschema/validators/complex_types.py:241
↓ 9 callers
Method
close
(self)
xmlschema/utils/protocols.py:17
↓ 9 callers
Function
decimal_validator
(value: Union[Decimal, int, float, str])
xmlschema/validators/helpers.py:151
↓ 9 callers
Function
fetch_schema_locations
Fetches schema location hints from an XML data source and a list of location hints. If an accessible schema location is not found raises a Va
xmlschema/resources/fetchers.py:52
↓ 9 callers
Method
get_obj_as_string
Return a string representation of obj attribute, with optional indentation and an optional limit on lines.
xmlschema/validators/exceptions.py:372
↓ 9 callers
Function
is_url
Returns `True` if the provided object is a URL, `False` otherwise.
xmlschema/utils/urls.py:61
↓ 9 callers
Method
iter_errors
Creates an iterator for the errors generated by the validation of an XML data against the XSD schema/component instance. Accepts the
xmlschema/validators/schemas.py:1285
↓ 9 callers
Method
iter_select
(self, root: Union[ElementType, 'XMLResource'])
xmlschema/xpath/selectors.py:207
↓ 9 callers
Method
namespace
The element's namespace.
xmlschema/dataobjects.py:179
↓ 9 callers
Method
qname
Get the QName of the provided object. Invalid chars for identifiers are replaced by an underscore. :param obj: an XSD object
xmlschema/extras/codegen.py:339
↓ 9 callers
Method
render_to_files
(self, names, parent=None, global_vars=None, output_dir='.', force=False)
xmlschema/extras/codegen.py:233
↓ 9 callers
Method
type_qname
Get the unqualified name of the XSD type. Invalid chars for identifiers are replaced by an underscore. :param obj: an instan
xmlschema/extras/codegen.py:436
↓ 9 callers
Function
validate
()
xmlschema/cli.py:234
↓ 8 callers
Method
__init__
(self, validator: 'XsdValidator', message: str, elem: Optional[ElementType] = None,
xmlschema/validators/exceptions.py:244
↓ 8 callers
Method
__new__
(mcs, name: str, bases: tuple[type[Any]], dict_: dict[str, Any])
xmlschema/validators/schemas.py:90
↓ 8 callers
Method
_parse_target_namespace
XSD 1.1 targetNamespace attribute in elements and attributes declarations.
xmlschema/validators/xsdbase.py:459
↓ 8 callers
Method
add_schema
Add another schema source to the maps of the instance without affecting imports or includes registrations. :param source: a
xmlschema/validators/schemas.py:1020
↓ 8 callers
Method
build
(self)
xmlschema/validators/builders.py:495
↓ 8 callers
Method
check_advance
Advances a model with an argument match condition and checks the expected error list. :param model: an ModelGroupVisitor instance.
tests/validators/test_models.py:89
↓ 8 callers
Method
clear
Clears the instance maps and schemas. :param remove_schemas: removes also the schema instances, keeping only the \ validator
xmlschema/validators/xsd_globals.py:505
↓ 8 callers
Method
create_any_content_group
Creates a local child model group for a complex type or a group that accepts any content. :param parent: the parent complex type or
xmlschema/validators/builders.py:212
↓ 8 callers
Function
decode_url
Decode the given url, if necessary.
xmlschema/utils/urls.py:188
↓ 8 callers
Method
get_facet
(self, tag: str)
xmlschema/validators/simple_types.py:529
↓ 8 callers
Method
get_memory_usage
(output)
tests/run_memory_tests.py:30
↓ 8 callers
Method
get_schema
Returns the first schema loaded for a namespace. Raises a `KeyError` if the requested namespace is not loaded.
xmlschema/validators/schemas.py:933
↓ 8 callers
Method
is_blocked
Returns `True` if the base type derivation is blocked, `False` otherwise.
xmlschema/validators/xsdbase.py:844
↓ 8 callers
Method
is_emptiable
(self)
xmlschema/validators/groups.py:167
↓ 8 callers
Method
is_optional
Returns `True` if the provided particle can be optional in the model group.
xmlschema/validators/groups.py:448
↓ 8 callers
Method
is_substitute
(self, other: ModelParticleType)
xmlschema/validators/elements.py:1240
↓ 8 callers
Method
iter_decode
Creates an iterator for decoding an XML source to a data structure. :param source: the source of XML data. Can be an :class:`XMLReso
xmlschema/validators/schemas.py:1439
↓ 8 callers
Method
iter_group
Returns an iterator for the current model group.
xmlschema/validators/models.py:248
↓ 8 callers
Method
load
(self, qname: str, elem: ElementType, schema: SchemaType)
xmlschema/validators/builders.py:432
↓ 8 callers
Method
map_attributes
Creates an iterator for converting decoded attributes to a data structure with appropriate prefixes. :param attributes: A se
xmlschema/converters/base.py:233
↓ 8 callers
Method
map_content
A generator function for converting the decoded content to a data structure. :param content: A sequence or an iterator of tuples wit
xmlschema/converters/base.py:247
↓ 8 callers
Method
name
The element's name, that matches the tag.
xmlschema/dataobjects.py:186
↓ 8 callers
Method
restart
(self)
xmlschema/validators/models.py:239
↓ 8 callers
Function
run_timeit
(stmt='pass', setup='pass', number=1000)
profiling/profile_params.py:16
↓ 8 callers
Method
tostring
Serializes the data element tree to an XML source string. :param namespaces: is an optional mapping from namespace prefix to URI. \
xmlschema/dataobjects.py:337
↓ 7 callers
Method
__setattr__
(self, name: str, value: Any)
xmlschema/validators/builders.py:183
↓ 7 callers
Method
_lazy_iterparse
(self, fp: IOType)
xmlschema/resources/xml_loader.py:220
↓ 7 callers
Method
builtin_types
Returns the XSD built-in types of the meta-schema.
xmlschema/validators/schemas.py:702
↓ 7 callers
Method
check_copy_equivalence
Advances a model with an argument match condition and checks the expected error list.
tests/validators/test_models.py:116
↓ 7 callers
Function
etree_parse
(source, repeat=1)
tests/check_memory.py:81
↓ 7 callers
Function
fetch_namespaces
Fetches namespaces information from the XML data source. The argument *source* can be a string containing the XML document or file path or an
xmlschema/resources/fetchers.py:122
↓ 7 callers
Function
fetch_resource
Fetches a resource by trying to access it. If the resource is accessible returns its normalized URL, otherwise raises an `XMLResourceOSError`
xmlschema/resources/fetchers.py:22
↓ 7 callers
Function
func
(**kwargs)
profiling/profile_context.py:30
↓ 7 callers
Method
get_annotation
Get the XSD annotation of the i-th pattern facet. :param i: an integer index. :returns: an XsdAnnotation object or `None`.
xmlschema/validators/facets.py:826
↓ 7 callers
Method
get_binding
Gets data object binding for XSD element, creating a new one if it doesn't exist. :param bases: base classes to use for creating the
xmlschema/validators/elements.py:481
↓ 7 callers
Function
get_namespace_map
Returns a new and checked namespace map.
xmlschema/utils/qnames.py:198
↓ 7 callers
Method
get_subgroups
Returns a list of the groups that represent the first path to the enclosed particle. Raises an `XMLSchemaModelError` if the argument
xmlschema/validators/groups.py:384
↓ 7 callers
Function
get_uri
Get the URI from components, according to https://datatracker.ietf.org/doc/html/rfc3986.
xmlschema/utils/urls.py:28
← previous
next →
101–200 of 2,466, ranked by callers