EDN Admin
Well-known member
<span style="font-size:x-small; color:#0000ff; font-family:Consolas <span style="font-size:x-small; color:#0000ff; font-family:Consolas <span style="font-size:x-small; color:#0000ff; font-family:Consolas Here is the piece of code that loads the schedma,
xml and populates the DataSet tables:<br/>
<br/>
<span style="font-size:x-small; color:#0000ff; font-family:Consolas <span style="font-size:x-small; color:#0000ff; font-family:Consolas <span style="font-size:x-small; color:#0000ff; font-family:Consolas public<span style="font-size:x-small; font-family:Consolas <span style="font-size:x-small; font-family:Consolas
<span style="font-size:x-small; color:#2b91af; font-family:Consolas <span style="font-size:x-small; color:#2b91af; font-family:Consolas <span style="font-size:x-small; color:#2b91af; font-family:Consolas DataSet<span style="font-size:x-small; font-family:Consolas <span style="font-size:x-small; font-family:Consolas
ds;<br/>
<span style="font-size:x-small; font-family:Consolas <span style="font-size:x-small; font-family:Consolas ds =
<span style="font-size:x-small; color:#0000ff; font-family:Consolas <span style="font-size:x-small; color:#0000ff; font-family:Consolas <span style="font-size:x-small; color:#0000ff; font-family:Consolas new<span style="font-size:x-small; font-family:Consolas <span style="font-size:x-small; font-family:Consolas
<span style="font-size:x-small; color:#2b91af; font-family:Consolas <span style="font-size:x-small; color:#2b91af; font-family:Consolas <span style="font-size:x-small; color:#2b91af; font-family:Consolas DataSet<span style="font-size:x-small; font-family:Consolas <span style="font-size:x-small; font-family:Consolas ();<br/>
ds.ReadXmlSchema(<span style="font-size:x-small; color:#a31515; font-family:Consolas <span style="font-size:x-small; color:#a31515; font-family:Consolas <span style="font-size:x-small; color:#a31515; font-family:Consolas "test.xsd"<span style="font-size:x-small; font-family:Consolas <span style="font-size:x-small; font-family:Consolas );<br/>
ds.EnforceConstraints = <span style="font-size:x-small; color:#0000ff; font-family:Consolas <span style="font-size:x-small; color:#0000ff; font-family:Consolas <span style="font-size:x-small; color:#0000ff; font-family:Consolas true<span style="font-size:x-small; font-family:Consolas <span style="font-size:x-small; font-family:Consolas ;<br/>
ds.ReadXml(<span style="font-size:x-small; color:#a31515; font-family:Consolas <span style="font-size:x-small; color:#a31515; font-family:Consolas <span style="font-size:x-small; color:#a31515; font-family:Consolas "test.xml"<span style="font-size:x-small; font-family:Consolas <span style="font-size:x-small; font-family:Consolas ,
<span style="font-size:x-small; color:#2b91af; font-family:Consolas <span style="font-size:x-small; color:#2b91af; font-family:Consolas <span style="font-size:x-small; color:#2b91af; font-family:Consolas XmlReadMode<span style="font-size:x-small; font-family:Consolas <span style="font-size:x-small; font-family:Consolas .ReadSchema);<br/>
printTblsAndColumns(); // this lists all tables from dataset ds and their columns/data types.<br/>
<br/>
My Question is : Shouldnt I see all elements / attributes described in the xsd either as a table or a column ??<br/>
It seems to miss a bunch of them!!!!
<span style="font-size:x-small; font-family:Consolas <span style="font-size:x-small; font-family:Consolas Can some one shed some light on this issue bugging me please?<br/>
<br/>
Thanks<br/>
Sankar
View the full article
xml and populates the DataSet tables:<br/>
<br/>
<span style="font-size:x-small; color:#0000ff; font-family:Consolas <span style="font-size:x-small; color:#0000ff; font-family:Consolas <span style="font-size:x-small; color:#0000ff; font-family:Consolas public<span style="font-size:x-small; font-family:Consolas <span style="font-size:x-small; font-family:Consolas
<span style="font-size:x-small; color:#2b91af; font-family:Consolas <span style="font-size:x-small; color:#2b91af; font-family:Consolas <span style="font-size:x-small; color:#2b91af; font-family:Consolas DataSet<span style="font-size:x-small; font-family:Consolas <span style="font-size:x-small; font-family:Consolas
ds;<br/>
<span style="font-size:x-small; font-family:Consolas <span style="font-size:x-small; font-family:Consolas ds =
<span style="font-size:x-small; color:#0000ff; font-family:Consolas <span style="font-size:x-small; color:#0000ff; font-family:Consolas <span style="font-size:x-small; color:#0000ff; font-family:Consolas new<span style="font-size:x-small; font-family:Consolas <span style="font-size:x-small; font-family:Consolas
<span style="font-size:x-small; color:#2b91af; font-family:Consolas <span style="font-size:x-small; color:#2b91af; font-family:Consolas <span style="font-size:x-small; color:#2b91af; font-family:Consolas DataSet<span style="font-size:x-small; font-family:Consolas <span style="font-size:x-small; font-family:Consolas ();<br/>
ds.ReadXmlSchema(<span style="font-size:x-small; color:#a31515; font-family:Consolas <span style="font-size:x-small; color:#a31515; font-family:Consolas <span style="font-size:x-small; color:#a31515; font-family:Consolas "test.xsd"<span style="font-size:x-small; font-family:Consolas <span style="font-size:x-small; font-family:Consolas );<br/>
ds.EnforceConstraints = <span style="font-size:x-small; color:#0000ff; font-family:Consolas <span style="font-size:x-small; color:#0000ff; font-family:Consolas <span style="font-size:x-small; color:#0000ff; font-family:Consolas true<span style="font-size:x-small; font-family:Consolas <span style="font-size:x-small; font-family:Consolas ;<br/>
ds.ReadXml(<span style="font-size:x-small; color:#a31515; font-family:Consolas <span style="font-size:x-small; color:#a31515; font-family:Consolas <span style="font-size:x-small; color:#a31515; font-family:Consolas "test.xml"<span style="font-size:x-small; font-family:Consolas <span style="font-size:x-small; font-family:Consolas ,
<span style="font-size:x-small; color:#2b91af; font-family:Consolas <span style="font-size:x-small; color:#2b91af; font-family:Consolas <span style="font-size:x-small; color:#2b91af; font-family:Consolas XmlReadMode<span style="font-size:x-small; font-family:Consolas <span style="font-size:x-small; font-family:Consolas .ReadSchema);<br/>
printTblsAndColumns(); // this lists all tables from dataset ds and their columns/data types.<br/>
<br/>
My Question is : Shouldnt I see all elements / attributes described in the xsd either as a table or a column ??<br/>
It seems to miss a bunch of them!!!!
<span style="font-size:x-small; font-family:Consolas <span style="font-size:x-small; font-family:Consolas Can some one shed some light on this issue bugging me please?<br/>
<br/>
Thanks<br/>
Sankar
View the full article