<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix"><br>
      +1 to manipulate and create xml using lxml<br>
      <br>
      On 01/14/2014 02:57 AM, Sheldon wrote:<br>
    </div>
    <blockquote cite="mid:52D4C3A9.80007@linux.vnet.ibm.com" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      As we all know there is a issue about generate and manipulate XML
      documents<br>
      <b><a moz-do-not-send="true" class="moz-txt-link-freetext"
          href="https://github.com/kimchi-project/kimchi/issues/124">https://github.com/kimchi-project/kimchi/issues/124</a></b><br>
      <br>
      IMO, lxml is a good choice.<br>
      you can see this patch:<br>
      $ git show 69edfe9<br>
      Mark use it to generate XML documents.<br>
      <br>
      And for manipulate XML documents, here is a example. <br>
      <font color="#909090"><font size="3"><i><font color="#000000">$
              ipython -c 'from lxml import objectify <br>
              root = objectify.fromstring("&lt;root&gt;&lt;a
              k=\"key\"&gt;24.12.2000&lt;b&gt;12.24.2000&lt;/b&gt;&lt;/a&gt;&lt;/root&gt;")

              <br>
              print root.a <br>
              print root.a.b <br>
              print root.a.get("k") <br>
              ' </font></i><br>
          <br>
          <font color="#000000"><i>re</i><i>sult</i><i>&#65306; </i><i><br>
            </i><i>24.12.2000 </i><i><br>
            </i><i>12.24.2000 </i><i><br>
            </i><i>key </i></font></font></font><br>
      <br>
      more info:&nbsp; <a moz-do-not-send="true"
        class="moz-txt-link-freetext" href="http://lxml.de/">http://lxml.de/</a><br>
      <br>
      <pre class="moz-signature" cols="72">-- 
Thanks and best regards!

Sheldon Feng(&#20911;&#23569;&#21512;)<a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:shaohef@linux.vnet.ibm.com">&lt;shaohef@linux.vnet.ibm.com&gt;</a>
IBM Linux Technology Center</pre>
    </blockquote>
    <br>
  </body>
</html>