Skip to main content

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

Project description

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

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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smartxml-1.0.1.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smartxml-1.0.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file smartxml-1.0.1.tar.gz.

File metadata

  • Download URL: smartxml-1.0.1.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for smartxml-1.0.1.tar.gz
Algorithm Hash digest
SHA256 20553fedf3cbc99be75f14165d3146ae60840be6ebb90a26a0add85e986876f8
MD5 c49822e11873ba2ff08e86b51d9b4856
BLAKE2b-256 bd48eb75c711412fb17f4ae6b4fed489e5bc4490a253a6d1cca29712be8dba5f

See more details on using hashes here.

File details

Details for the file smartxml-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: smartxml-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for smartxml-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 76833967cce103b784a65c4858167a53de3fbabbde916206f8e008daf30a5ef6
MD5 b8538d18943bc9db0683f266139209dc
BLAKE2b-256 18207c73b02e1b611b891a91f76e66feb3729272fb250735e1254568cf161e37

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page