Hi - I'm using TXMLDocument (D6), and need to find all the nodes with a given name. The code below always returns the first (from the root) matching node, and as such never exits the loop. How can I start the search from the current position?
lndeTmp := lndeRoot.ChildNodes.FindNode('Param');
while assigned(lndeTmp) do
begin
with lndeTmp.ChildNodes.FindNode('ParamName') do
Showmessage(text);
lndeTmp := lndeRoot.ChildNodes.FindNode('Param');
end;
Cheers.
lndeTmp := lndeRoot.ChildNodes.FindNode('Param');
while assigned(lndeTmp) do
begin
with lndeTmp.ChildNodes.FindNode('ParamName') do
Showmessage(text);
lndeTmp := lndeRoot.ChildNodes.FindNode('Param');
end;
Cheers.