On 19 May 2005 17:27:05 -0700, rh0dium [EMAIL PROTECTED] wrote:
HI all,
I am looking to parse a unix tool called lshw (
http://ezix.sourceforge.net/software/lshw.html ). Now this provides a
nice XML output which looks similar to the bottom of this message..
That doesn't appear to be
That doesn't appear to be well-formed XML, which isn't a good start...
Indeed. rh0dium, you can't have two nodes elements at root level.
If you use an enclosing element around the two nodes, your XML
becomes well formed. Like this:
?xml version=1.0 standalone=yes ?
root
!-- generated by
HI all,
I am looking to parse a unix tool called lshw (
http://ezix.sourceforge.net/software/lshw.html ). Now this provides a
nice XML output which looks similar to the bottom of this message..
Now I want to parse and get some information from it so here is what I
have..
class HWParser: