Branko
Branko

Reputation: 1468

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

Upvotes: 5

Views: 316

Answers (1)

The_Fox
The_Fox

Reputation: 7062

You can do it like this:

oNode.AddChild('AdrLine').Text := ...

Upvotes: 6

Related Questions