Fuses two XML markups together
Project description
lxmlx
Given two XML documents having the same text, fuses the markup together to create the output XML document.
Installation
If you install using pip
, all dependencies are automatically fetched and installed:
pip install xmlfuse
If you want to build from sources, follow these steps:
Building and testing:
make venv
make
API
import lxml.etree as et
from xmlfuse.fuse import fuse
xml1 = et.fromstring('<span>Hello, <i>world!</i></span>')
xml2 = et.fromstring('<span><b>Hello</b>, world!</span>')
xml = fuze(xml1, xml2)
assert et.tostring(xml) == b'<span><b>Hello</b>, <i>world!</i></span>'
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.