XML Newbie needing some serious help..
Adriano Ferreira
a.r.ferreira at gmail.com
Fri May 20 08:20:50 EDT 2005
> That doesn't appear to be well-formed XML, which isn't a good start...
Indeed. rh0dium, you can't have two <node>s elements at root level.
If you use an enclosing element around the two <node>s, your XML
becomes well formed. Like this:
<?xml version="1.0" standalone="yes" ?>
<root>
<!-- generated by lshw-B.02.03 -->
<!-- GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-42) -->
<node id="cpu:0" claimed="true" class="processor" handle="DMI:0400">
...
</node>
<node id="cpu:1" disabled="true" claimed="true" class="processor"
handle="DMI:0401">
...
</node>
</root>
Regards, Adriano.
More information about the Python-list
mailing list