MCPcopy Create free account
hub / github.com/sissaschool/xmlschema / bind_parser

Method bind_parser

xmlschema/xpath/proxy.py:50–53  ·  view source on GitHub ↗
(self, parser: XPath2Parser)

Source from the content-addressed store, hash-verified

48 raise XMLSchemaTypeError("%r is not an XsdElement" % base_element)
49
50 def bind_parser(self, parser: XPath2Parser) -> None:
51 parser.schema = self
52 parser.symbol_table = {k: v for k, v in parser.__class__.symbol_table.items()}
53 parser.symbol_table.update(self._schema.maps.xpath_constructors)
54
55 def get_context(self) -> XPathSchemaContext:
56 if self._base_element is not None:

Callers 2

__call__Method · 0.80

Calls 1

updateMethod · 0.45

Tested by 1