Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
H

Harikrishna Daxini

@Harikrishna Daxini
About
Posts
1
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Read xml file which has multiple tables
    H Harikrishna Daxini

    Use xml file like then you will able to read more than one table in dataset by ds.ReadXml(xmlfile) ;Just test it.

    <?xml version="1.0" standalone="yes"?>
    <PersonalInfo>
    <xs:schema id="PersonalInfo" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    <xs:element name="PersonalInfo" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
    xs:complexType
    <xs:choice minOccurs="0" maxOccurs="unbounded">
    <xs:element name="PesonalInfo.">
    xs:complexType
    xs:sequence
    <!--Define Column Here....-->
    <xs:element name="name" type="xs:string" />
    <xs:element name="address" type="xs:string" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:choice>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    <!--First Row-->
    <PersonalInfo.>
    <name>abc</name>
    <address>xyz</address>
    </PersonalInfo.>
    <!--Second Row-->
    <!--If You Want To Define-->
    <name>bcd</name>
    <address>ssss</address>
    <!--Please Be CareFull When Enter New Row If There Is No Data To Insert To
    Particular Column Then Write NULL-->

      <xs:schema id="OtherInfo" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <xs:element name="OtherInfo" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
          <xs:complexType>
            <xs:choice minOccurs="0" maxOccurs="unbounded">
              <xs:element name="OtherInfo.">
                <xs:complexType>
                  <xs:sequence>
                    <!--Define Column Here....-->
                    <xs:element name="name" type="xs:string" />
                    <xs:element name="address" type="xs:string" />
                  </xs:sequence>
                </xs:complexType>
            </xs:element>
            </xs:choice>
        </xs:complexType>
        </xs:element>
      </xs:schema>
    

    </PersonalInfo>

    C# xml
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups