I have generated a unit from XSD file with the XML wizard.
All is OK, but I have an optional node with minOccurs="0"
without max.
<xs:complexType name="Party">
<xs:sequence>
<xs:element name="Nm" type="Max70Text" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
In Delphi code I can access the value with:
LDocument.Aaa.Bbb.Items[0].Xxx.Nm
But what if there are 2 <Nm>
nodes in the XML, how can I access them? The generated interface supports just single <Nm>
node.
IXMLParty = interface(IXMLNode)
{ Property Accessors }
function Get_Nm: UnicodeString;
procedure Set_Nm(Value: UnicodeString);
{ Methods & Properties }
property Nm: UnicodeString read Get_Nm write Set_Nm;
end;