added 2 commits
August 13, 2022 08:37- Add supported `Element.xpath()` keywords to `validate.xml_xpath()`
- `namespaces` for defining prefix-namespace mappings
- `extensions` for defining custom XPath functions in Python
- `smart_strings` for disabling element tree references on any string
return values that will be kept in memory
- `**variables` for being able to define custom XPath variables
instead of having to embed strings in the XPath query itself
- Add `namespaces`, `extensions` and `**variables` keywords to
`validate.xml_xpath_string()` and always disable `smart_strings`
- Add `namespaces` to `validate.xml_find()`, `validate.xml_findall()`
and `validate.xml_findtext()`
- Handle XPath evaluation errors via `lxml.etree.XPathError`
and ElementPath syntax errors via `SyntaxError`
- Update error messages of ElementPath-based validators
- Remove unneeded `iselement` validation at the end of `xml_find()`
- Fix docstrings of both XPath- and ElementPath-based validators
- Add tests for the newly added keywords and XPath evaluation errors
bastimeyer deleted the plugin/api/validate/xpath-args branch
August 13, 2022 22:24Billy2011 added a commit to Billy2011/streamlink-27 that referenced this pull request
Aug 15, 2022- Add supported `Element.xpath()` keywords to `validate.xml_xpath()`
- `namespaces` for defining prefix-namespace mappings
- `extensions` for defining custom XPath functions in Python
- `smart_strings` for disabling element tree references on any string
return values that will be kept in memory
- `**variables` for being able to define custom XPath variables
instead of having to embed strings in the XPath query itself
- Add `namespaces`, `extensions` and `**variables` keywords to
`validate.xml_xpath_string()` and always disable `smart_strings`
- Add `namespaces` to `validate.xml_find()`, `validate.xml_findall()`
and `validate.xml_findtext()`
- Handle XPath evaluation errors via `lxml.etree.XPathError`
and ElementPath syntax errors via `SyntaxError`
- Update error messages of ElementPath-based validators
- Remove unneeded `iselement` validation at the end of `xml_find()`
- Fix docstrings of both XPath- and ElementPath-based validators
- Add tests for the newly added keywords and XPath evaluation errors
Billy2011 added a commit to Billy2011/streamlink-27 that referenced this pull request
Aug 17, 2022- Add supported `Element.xpath()` keywords to `validate.xml_xpath()`
- `namespaces` for defining prefix-namespace mappings
- `extensions` for defining custom XPath functions in Python
- `smart_strings` for disabling element tree references on any string
return values that will be kept in memory
- `**variables` for being able to define custom XPath variables
instead of having to embed strings in the XPath query itself
- Add `namespaces`, `extensions` and `**variables` keywords to
`validate.xml_xpath_string()` and always disable `smart_strings`
- Add `namespaces` to `validate.xml_find()`, `validate.xml_findall()`
and `validate.xml_findtext()`
- Handle XPath evaluation errors via `lxml.etree.XPathError`
and ElementPath syntax errors via `SyntaxError`
- Update error messages of ElementPath-based validators
- Remove unneeded `iselement` validation at the end of `xml_find()`
- Fix docstrings of both XPath- and ElementPath-based validators
- Add tests for the newly added keywords and XPath evaluation errors
Billy2011 added a commit to Billy2011/streamlink-27 that referenced this pull request
Sep 3, 2022- Add supported `Element.xpath()` keywords to `validate.xml_xpath()`
- `namespaces` for defining prefix-namespace mappings
- `extensions` for defining custom XPath functions in Python
- `smart_strings` for disabling element tree references on any string
return values that will be kept in memory
- `**variables` for being able to define custom XPath variables
instead of having to embed strings in the XPath query itself
- Add `namespaces`, `extensions` and `**variables` keywords to
`validate.xml_xpath_string()` and always disable `smart_strings`
- Add `namespaces` to `validate.xml_find()`, `validate.xml_findall()`
and `validate.xml_findtext()`
- Handle XPath evaluation errors via `lxml.etree.XPathError`
and ElementPath syntax errors via `SyntaxError`
- Update error messages of ElementPath-based validators
- Remove unneeded `iselement` validation at the end of `xml_find()`
- Fix docstrings of both XPath- and ElementPath-based validators
- Add tests for the newly added keywords and XPath evaluation errors