🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

xmlx

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xmlx

A simple and compact XML parser.

2.0.0
Maintainers
1

XMLX - a simple and compact XML parser.

XMLX = XML eXtras

To initialize an element object from a string:

>>> xmlx.Element('<html>hello!</html>')

<html>..</html at 0x...>

If you prefer dictionaries, simply use xmlx.elemdict(text):

>>> xmlx.elemdict('<html>hello!</html>')

{'?':{},'@':'hello!','*':'<html>hello!</html>'}

? is the element's attributes, @ is its content (JS innerHTML), and * is its text (JS outerHTML).

See help(xmlx) for further documentation.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts