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
  1. Home
  2. Web Development
  3. ASP.NET
  4. I am in need of generate the XML file using XML schema with VB.net.

I am in need of generate the XML file using XML schema with VB.net.

Scheduled Pinned Locked Moved ASP.NET
databasexmlcsharptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member 4659001
    wrote on last edited by
    #1

    I am in need of generate the XML file using XML schema with VB.net. (how to fill the valves from database to this schema and finally how to generate Xml file form sample.xsd file I mean My sample.xsd file looks like this <?xml version="1.0" encoding="utf-8" ?> <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="ProcessResults"> xs:complexType xs:sequence <xs:element name="KASAAcctID"> xs:complexType xs:sequence </xs:sequence> </xs:complexType> </xs:element> <!--starts Results Tags--> <xs:element name="Results"> xs:complexType <xs:sequence > <!--starts Candidate Tag Tags--> <xs:element name="Candidate"> xs:complexType xs:sequence <xs:element name="FirstName" type="xs:string" /> <xs:element name="LastName" type="xs:int" /> <xs:element name="Uid" type="xs:int" /> <!--starts Demorgraphics Tag Tags--> <xs:element name="Demorgraphics"> xs:complexType xs:sequence <xs:element name="Race" type="xs:string" /> <xs:element name="Gender" type="xs:int" /> <xs:element name="BirthMonth" type="xs:int" /> <xs:element name="BirthDay" type="xs:int" /> <xs:element name="BirthYear" type="xs:int" /> </xs:sequence> </xs:complexType> </xs:element> <!--Ends Demorgraphics Tag Tags--> <xs:element name="DollarGeneralLocation" type="xs:int" /> <!--starts Responses Tag Tags--> <xs:element name="Responses"> xs:complexType xs:sequence <xs:element name="Response" type="xs:int" /> </xs:sequence> </xs:complexType> </xs:element> <!--Ends Responses Tag Tags--> </xs:sequence> </xs:complexType> </xs:element> <!--Ends Candiadte Tag Tags--> </xs:sequence> </xs:complexType> </xs:element> <!--Ends Result Tag Tags--> </xs:sequence> </xs:complexTy

    C 1 Reply Last reply
    0
    • M Member 4659001

      I am in need of generate the XML file using XML schema with VB.net. (how to fill the valves from database to this schema and finally how to generate Xml file form sample.xsd file I mean My sample.xsd file looks like this <?xml version="1.0" encoding="utf-8" ?> <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="ProcessResults"> xs:complexType xs:sequence <xs:element name="KASAAcctID"> xs:complexType xs:sequence </xs:sequence> </xs:complexType> </xs:element> <!--starts Results Tags--> <xs:element name="Results"> xs:complexType <xs:sequence > <!--starts Candidate Tag Tags--> <xs:element name="Candidate"> xs:complexType xs:sequence <xs:element name="FirstName" type="xs:string" /> <xs:element name="LastName" type="xs:int" /> <xs:element name="Uid" type="xs:int" /> <!--starts Demorgraphics Tag Tags--> <xs:element name="Demorgraphics"> xs:complexType xs:sequence <xs:element name="Race" type="xs:string" /> <xs:element name="Gender" type="xs:int" /> <xs:element name="BirthMonth" type="xs:int" /> <xs:element name="BirthDay" type="xs:int" /> <xs:element name="BirthYear" type="xs:int" /> </xs:sequence> </xs:complexType> </xs:element> <!--Ends Demorgraphics Tag Tags--> <xs:element name="DollarGeneralLocation" type="xs:int" /> <!--starts Responses Tag Tags--> <xs:element name="Responses"> xs:complexType xs:sequence <xs:element name="Response" type="xs:int" /> </xs:sequence> </xs:complexType> </xs:element> <!--Ends Responses Tag Tags--> </xs:sequence> </xs:complexType> </xs:element> <!--Ends Candiadte Tag Tags--> </xs:sequence> </xs:complexType> </xs:element> <!--Ends Result Tag Tags--> </xs:sequence> </xs:complexTy

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I believe there are tools that can create XML that matches, the thing is, a schema matches more than one format, some groups of elements can have a variety of numbers of instances. Also, a schema doesn't really give you enough info to create 100% compliant XML, just a format.

      Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

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