Re: [Gambas-user] Reading XML Attributes.

2011-03-30 Thread Antonio Cassidy
Managed to solve it with: DIM node3 AS XmlNode . FOR EACH node3 IN node1.Attributes IF node3.Name = "type" THEN PRINT node3.Value END IF NEXT think i was having a mental block! On Wed, Mar 30, 2011 at 8:27 PM, Antonio Cassidy wrote: > Im getting a step closer, i

Re: [Gambas-user] Reading XML Attributes.

2011-03-30 Thread Antonio Cassidy
Im getting a step closer, if i use the following: FOR EACH node1.Attributes PRINT node1.name NEXT I get the following: -78,F8:DB:7F:78:34:61,PJ-WIRELESS5,None,0 wireless-network wireless-network wireless-network wireless-network -79,F8:DB:7F:79:27:36,PJ-WIRELESS5,None,0 There are 4 attr

Re: [Gambas-user] Reading XML Attributes.

2011-03-30 Thread Antonio Cassidy
Hi Caveat Would it be possible to nab a copy of the project. The following looks to be what i need to use with my current code: http://64.128.110.55/help/comp/gb.xml/.xmlnodeattributes?v3&en the high level explanation makes sense however im having issues actually using .xmlnodeattributes im a

Re: [Gambas-user] Reading XML Attributes.

2011-03-30 Thread Caveat
Hi Antonio I think this is the result you're looking for: *** Get the Attribute "type" from the path wireless-network Using full path: /wireless-network Attribute key: number Attribute key: type infrastructure

[Gambas-user] Reading XML Attributes.

2011-03-30 Thread Antonio Cassidy
Hi All I am trying to write a gambas application to parse kismet XML logs. I am able to parse elements and also sub elements but not the attributes. My code is here: http://pastebin.com/QiX2BsHH The sample XML is here, i specifically want to get the "type" attribute from the "wireless-network"