I
info
Hi there
I've an XML FIle with an Inline XSD Schema how can I read attributes of
this file?
Below is an sample XML
When I just try to open and read it get the error that the XML Data
can't be parsed.
When i just remove the schema i just get 2 Columns one ist "VFPData"
the other one curpim. But that's not the result i want to get, because
i want the items of curpim.
Can anyone help me with a code sample that works with this XML Data?
Thank you a lot !
Here is an sample of the file:
<?xml version = "1.0" encoding="Windows-1252" standalone="yes"?>
<VFPData xml:space="preserve">
<xsd:schema id="VFPData" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="VFPData" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="curpim" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Feld1">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="10"></xsd:maxLength>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Feld2">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="10"></xsd:maxLength>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:choice>
<xsd:anyAttribute namespace="http://www.w3.org/XML/1998/namespace"
processContents="lax"></xsd:anyAttribute>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<curpim>
<Feld1> 3200013</Feld1>
<Feld2></Feld2>
</curpim>
<curpim>
<Feld1> 4523423</Feld1>
<Feld2>abcdef</Feld2>
</curpim>
<curpim>
<Feld1> A3214</Feld1>
<Feld2>xvcdxfsd</Feld2>
</curpim>
</VFPData>
I've an XML FIle with an Inline XSD Schema how can I read attributes of
this file?
Below is an sample XML
When I just try to open and read it get the error that the XML Data
can't be parsed.
When i just remove the schema i just get 2 Columns one ist "VFPData"
the other one curpim. But that's not the result i want to get, because
i want the items of curpim.
Can anyone help me with a code sample that works with this XML Data?
Thank you a lot !
Here is an sample of the file:
<?xml version = "1.0" encoding="Windows-1252" standalone="yes"?>
<VFPData xml:space="preserve">
<xsd:schema id="VFPData" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="VFPData" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="curpim" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Feld1">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="10"></xsd:maxLength>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Feld2">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="10"></xsd:maxLength>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:choice>
<xsd:anyAttribute namespace="http://www.w3.org/XML/1998/namespace"
processContents="lax"></xsd:anyAttribute>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<curpim>
<Feld1> 3200013</Feld1>
<Feld2></Feld2>
</curpim>
<curpim>
<Feld1> 4523423</Feld1>
<Feld2>abcdef</Feld2>
</curpim>
<curpim>
<Feld1> A3214</Feld1>
<Feld2>xvcdxfsd</Feld2>
</curpim>
</VFPData>