Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XMLNode with more values and same name

I must create xml document with node that has more values with same name

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

With oNode.ChildValues['AdrLine'] := ... it is not possible - only one value with same name can be added. How can I add more values with same name?

Best regards

like image 599
Branko Avatar asked Feb 23 '12 08:02

Branko


1 Answers

You can do it like this:

oNode.AddChild('AdrLine').Text := ...
like image 81
The_Fox Avatar answered Sep 27 '22 15:09

The_Fox