https://github.com/aboutcode-org/sanexml
https://github.com/aboutcode-org/sanexml
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/aboutcode-org/sanexml
- Owner: aboutcode-org
- Created: 2023-07-10T17:21:13.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-30T03:56:54.000Z (over 1 year ago)
- Last Synced: 2025-06-06T02:39:59.359Z (7 months ago)
- Language: Python
- Size: 89.8 KB
- Stars: 1
- Watchers: 6
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- Code of conduct: CODE_OF_CONDUCT.rst
Awesome Lists containing this project
README
sanexml
==================
This repo is a pure python implementation for `lxml `_.
Installation
-------------------
Requirements
###################
* Python 3.7 or later
.. code-block:: bash
pip install sanexml
Documentation
---------------------------
sanexml is a fallback library for **lxml.etree** module, so the functions have same names and parameters.
This implementation is built on top of python's default xml library and BeautifulSoup4.
Below listed are the implemented functions.
###############################
* ``XMLParser``
* ``clear``
* ``remove_attribute``
* ``Comment``
* ``dump``
* ``Element``
* ``ElementTree``
* ``fromstring``
* ``indent``
* ``iselement``
* ``parse``
* ``strip_attributes``
* ``strip_elements``
* ``strip_tags``
* ``SubElement``
* ``tostringlist``
* ``tostring``
* ``XPath``
For documentation please refer to: https://lxml.de/tutorial.html