> Hi,
>
> I have a problem with reading an XmlSchema with Frameowk 2.0 and an
> own DataType. I found no example
> (searching two days).
...
> The Schema looks like following:
>
[quoted text clipped - 19 lines]
> <aTableName Column="1"/>
> </Data>
As a first guess, I'd suggest you extract that schema from the data.
Secondly, your data does not match your schema. "Data" is not the same as
"data".
John
Martin Madreza - 27 Feb 2007 09:21 GMT
hi,
yes sorry, i copied the schema from the original and modified a litte
(from german tio english)...
i extract the dqata from the data set with a testproject, the result
is, that
'msdata:DataType="MyNamespace.MyClass, MyAssemlyName'
becomes an element. it's not possible to set them (in the dataset) to
an attribute. the element is under a xs:sequence, and the structur
changes...
so far it works. but i cant set the value from the schema. in the
example below column value 1 is never set. in 1.1 everything works,
now i found nothing about what changed in 2.0 and what i have to
change to make it work. does any example exist with DataType =
OwnDataType?
hope you can help me to come forward... and sorry for the bad example.
if something ambiguous, please tell and i try to specify it
here is the example
<?xml version="1.0" standalone="yes"?>
<data>
<xs:schema id="data" xmlns="" xmlns:xs="http://www.w3.org/2001/
XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="data" msdata:IsDataSet="true" msdata:Locale="de-
DE">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="aTableName">
<xs:complexType>
<xs:sequence>
<xs:element name="Column" type="xs:string"
msdata:DataType="MyNamespace.MyClass, MyAssemlyName, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null"/>/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<aTableName>
<Column>1</Column>
</aTableName>
</data>