I have the following XML:
<?xml version="1.0"?>
<tv generator-info-name="Panel IPTV" generator-info url="http://tvla.xyz:25461/">
<channel id="AandE.mx">
<display-name>A&E [0]</display-name>
<icon src="http://www.chileiptv.xyz/logos/153.jpg"/>
</channel>
<channel id="AXN.mx">
<display-name>AXN [0]</display-name>
<icon src="http://www.chileiptv.xyz/logos/157.jpg"/>
</channel>
<channel id="AztecaCinema.mx">
<display-name>Azteca Cinema HD [0]</display-name>
<icon src="http://www.chileiptv.xyz/logos/158.jpg"/>
</channel>
<channel id="Azteca13.mx">
<display-name>Azteca 13 [0]</display-name>
<icon src="http://www.chileiptv.xyz/logos/22.jpg"/>
</channel>
<channel id="Azteca7.mx">
<display-name>Azteca 7 [0]</display-name>
<icon src="http://www.chileiptv.xyz/logos/23.jpg"/>
</channel>
</tv>
I do the route of the nodes with the following routine:
var
StartItemNode, item: IXMLNode;
id: string;
begin
uqChannels.Close;
uqProgramacion.Close;
try
usVaciarProgramacion.Execute;
if XMLDoc.DocumentElement.NodeName = 'tv' then
begin
StartItemNode := XMLDoc.DocumentElement.ChildNodes.FindNode('channel');
item := StartItemNode;
while item.NodeName = 'channel' do
begin
id := item.Attributes['id'];
item.NextSibling;
end;
end;
finally
uqChannels.Open;
uqProgramacion.Open;
end;
end;
But the route does not leave the first node.