Python Add Tags To Xml Using Lxml
I have the following Input XML: Copy
Contents of output.xml:
<Scenarioxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="Scenario.xsd"><TestCase>test_startup_0029</TestCase><ShortDescription>Restart of the EVC with missing ODO5 board.</ShortDescription><Events><EventNum="1">Switch on the EVC</Event></Events><HW-configuration><ELBE5A>true</ELBE5A><ELBE5K>false</ELBE5K></HW-configuration><SystemFailure>true</SystemFailure><Duration>12</Duration><EVC-SW-Version>08.02.0001.0027</EVC-SW-Version><STAC-Release>08.02.0001.0027</STAC-Release></Scenario>
See also http://lxml.de/FAQ.html#why-doesn-t-the-pretty-print-option-reformat-my-xml-output.
Post a Comment for "Python Add Tags To Xml Using Lxml"