Processing XML with Perl | Michel Rodriguez |
XHTML | XML-RPC |
XML for data
Data Bases
A table becomes an element, which includes a number of row-level elements, each row includes field-level elements
<table> <row><field1>value 1-1</field1><field2>value1-2</field2></row> <row><field1>value 2-1</field1><field2>value2-2</field2></row> </table> |
Note: this looks veryverbose, but it compresses very well!
Configuration files
<config logdir="/var/log/foo/" debugfile="/tmp/foo.debug"> <server name="sahara" osname="solaris" osversion="2.6"> <address>10.0.0.101</address> <address>10.0.1.101</address> </server> <server name="gobi" osname="irix" osversion="6.5"> <address>10.0.0.102</address> </server> <server name="kalahari" osname="linux" osversion="2.0.34"> <address>10.0.0.103</address> <address>10.0.1.103</address> </server> </config> |
XHTML | XML-RPC |