Hi i have an xml like this
<?xml version="1.0" encoding="UTF-8"?>
<receipt>
<item></item>
<vat></vat>
<body>
<details>
<description>a</description>
<price></price>
</details>
<details>
<description>b</description>
<price></price>
</details>
</body>
</receipt>
where details describe a single line of a receipt.
i need to read all details.
i tried with this code:
EntryNode := xmldocument1.DocumentElement.ChildNodes['details'];
for i := 0 to EntryNode.ChildNodes.Count do
begin
text := EntryNode.ChildNodes[i];
Break;
end;
but i obtain only the first details tag.
how can i edit my code?