How To Get Attribute Node And It's Values For XML

I very simply want to get hold of an XML node by it’s name and get the attributes of that node by it’s name. It seems I could use XQL but I would have a node list. I just want to get a single item by it’s name.

Thanks

There may be several things that match your query.
If there is only one, then it is the nodelist.item(0)

Other XML implementations have a SelectSingleNode option, but I cant find one in Xojo’s

[code] Dim Properties As XmlNode
Dim Objects As XmlNodeList
dim mComments as string

objects = xml.XQL("//Properties")
Properties = Objects.Item(0)
mcomments = Properties.GetAttribute(“comments”)
[/code]

[quote=218006:@Jeff Tullin]There may be several things that match your query.
If there is only one, then it is the nodelist.item(0)

Other XML implementations have a SelectSingleNode option, but I cant find one in Xojo’s

[code] Dim Properties As XmlNode
Dim Objects As XmlNodeList
dim mComments as string

objects = xml.XQL("//Properties")
Properties = Objects.Item(0)
mcomments = Properties.GetAttribute(“comments”)
[/code][/quote]
Okay, I will just write my own method. Thanks