Jump to content

grace123

Members
  • Posts

    3
  • Joined

  • Last visited

grace123's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. hi all,I have xml schema which is dataset type. there are following parts:---------------------------<xs:element name="Receipt"> <xs:complexType> <xs:sequence> <xs:element name="Header"> <xs:complexType><xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute name="AlignContent" type="xs:string" use="optional" default="Left"/> <xs:attribute name="Italic" type="xs:boolean" use="optional" default="false"/> <xs:attribute name="Bold" type="xs:boolean" use="optional" default="false"/> </xs:extension> </xs:simpleContent></xs:complexType> </xs:element> ---------------------------the corresponding xml file part is :-----------------------------<Receipt> <Header AlignContent="left" Italic="false" Bold="false">1212</Header> -----------------------------I cannot get the value"1212",from ds.Tables[Receipt].Rows[0][Header],because "Header" is a table in dataset. If I try ds.Tables[Header].column[0], it got"AlignContent", if try ds.Tables[Header].column[6],I got Header_text, something like that....SO, how can i get the value"1212" from the these tables?Thanks a lot
  2. you are right. I just want to post my question
  3. hi all,I have xml schema which is dataset type. there are following parts:---------------------------<xs:element name="Receipt"> <xs:complexType> <xs:sequence> <xs:element name="Header"> <xs:complexType><xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute name="AlignContent" type="xs:string" use="optional" default="Left"/> <xs:attribute name="Italic" type="xs:boolean" use="optional" default="false"/> <xs:attribute name="Bold" type="xs:boolean" use="optional" default="false"/> </xs:extension> </xs:simpleContent></xs:complexType> </xs:element> ---------------------------the corresponding xml file part is :-----------------------------<Receipt> <Header AlignContent="left" Italic="false" Bold="false">1212</Header> -----------------------------I cannot get the value"1212",from ds.Tables[Receipt].Rows[0][Header],because "Header" is a table in dataset. If I try ds.Tables[Header].column[0], it got"AlignContent", if try ds.Tables[Header].column[6],I got Header_text, something like that....SO, how can i get the value"1212" from the these tables?Thanks a lot
×
×
  • Create New...