Metadata-Version: 2.4
Name: smartXML
Version: 1.0.1
Summary: smartXML package enables you to read, search, manipulate, and write XML files with ease
Author-email: Dudu Arbel <duduarbel@gmail.com>
License-Expression: MIT
Keywords: python,example
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.31
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == "dev"
Requires-Dist: mypy>=1.8; extra == "dev"
Requires-Dist: ruff>=0.3; extra == "dev"

# smartXML

The **smartXML** package enables you to read, search, manipulate, and write XML files with ease.

The API is designed to be as simple as possible, but it will be enhanced according to usage and requests.

---

## Usage Example

```python
from pathlib import Path
from smartxml import SmartXML, TextOnlyComment

input_file = Path('./example.xml')
xml = SmartXML(input_file)

firstName = xml.find('students|student|firstName', with_content='Bob')
bob = firstName.parent
bob.comment_out()
header = TextOnlyComment('Bob is out')
header.add_before(bob)

xml.write()
