Dear friends,
i have the following XSD:
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="Persons">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="PersonFullName">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:pattern value="[A-Z0-9]{3,50}"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="PersonAliases" type="xsd:string" minOccurs="0" maxOccurs="5"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
Using XSD.exe i generate the following property for the PersonAliases:
<System.Xml.Serialization.XmlElementAttribute("PersonAliases", Form:=System.Xml.Schema.XmlSchemaForm.Unqualified)> _
Public Property PersonAliases() As String()
Get
Return Me.personAliasesField
End Get
...
When i deserialise the XML into an object i don't get a value for person aliases.
Any help would be appreciated.
Thanks,
K