Re: XML Newbie needing some serious help..

2005-05-20 Thread Simon Brunning
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

Re: XML Newbie needing some serious help..

2005-05-20 Thread Adriano Ferreira
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

XML Newbie needing some serious help..

2005-05-19 Thread rh0dium
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: