Firemonkey 2 select xml node by attribute - Delphi

Feras.B

New Member
I have a basic xml document used to populate a grid.\[code\]<cells><Cell Col="0" Row="0"/><Cell Col="0" Row="1"/><Cell Col="0" Row="2"/><Cell Col="0" Row="3"/><Cell Col="1" Row="0"/><Cell Col="1" Row="1"/><Cell Col="1" Row="2"/><Cell Col="1" Row="3"/></cells>\[/code\]Under each cell node I have child nodes such as text and colors, but for simplicity this will do.My question is: How can I select a specific node based on the attributes? For example I want to select a Cell node where Col = 1 and Row = 2.I would like to achieve this without using a for loop?
 
Back
Top