XMLNode with many values ​​and the same name

I have to create an XML document with node that has more values ​​with the same name

<PstlAdr>
  <Ctry>SI</Ctry>
  <AdrLine>Gosposvetska 12</AdrLine>
  <AdrLine>Kranj</AdrLine>
</PstlAdr>

With oNode.ChildValues['AdrLine'] := ...this it is impossible - you can add only one value with the same name. How to add additional values ​​with the same name?

Regards

+5
source share
1 answer

You can do it as follows:

oNode.AddChild('AdrLine').Text := ...
+6
source

All Articles