[XML-SIG] XML Writing Tools (& escape_markup)

uche.ogbuji@fourthought.com uche.ogbuji@fourthought.com
Fri, 07 Jan 2000 11:28:21 -0700

> Do any Python tools exist to write (or aid in writing) indented XML?

4DOM (http://Fourthought/4Suite/4DOM) has a pretty-printer which emits 
indented XML.  Here is an example:

  <ENTRY ID='pa' >
    <NAME>Pieter Aaron</NAME>
    <ADDRESS>404 Error Way</ADDRESS>
    <PHONENUM DESC='Work' >404-555-1234</PHONENUM>
    <PHONENUM DESC='Fax' >404-555-4321</PHONENUM>
    <PHONENUM DESC='Pager' >404-555-5555</PHONENUM>
  <ENTRY-LINK xlink:href='addr_book2.xml'  xlink:link='simple' >
  <ENTRY ID='en' >
    <NAME>Emeka Ndubuisi</NAME>
    <ADDRESS>42 Spam Blvd</ADDRESS>
    <PHONENUM DESC='Work' >767-555-7676</PHONENUM>
    <PHONENUM DESC='Fax' >767-555-7642</PHONENUM>
    <PHONENUM DESC='Pager' >800-SKY-PAGEx767676</PHONENUM>

Uche Ogbuji
FourThought LLC, IT Consultants
uche.ogbuji@fourthought.com	(970)481-0805
Software engineering, project management, Intranets and Extranets
http://FourThought.com		http://OpenTechnology.org