Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7548955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:49:42+00:00 2026-05-30T09:49:42+00:00

What is XSD and how to use it in ASP.NET Web application. I have

  • 0

What is XSD and how to use it in ASP.NET Web application.
I have stored procedures (Some of those are returning xml format values). Can i replace those with XSD?

Please suggest some good links to follow. I am pretty new to XSD.
I am sorry if this question is already answered.

Thanks in advance

Santhosh

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T09:49:43+00:00Added an answer on May 30, 2026 at 9:49 am

    Mr. Santosh, your client may be asking you to validate the data after
    pulling it from db.. rather than accepting it right away he intends to
    get it validated by you. And that is what XSD is capable of ..

    XSD: XML Schema Definition, used to validate XML. Usually for incoming data, before accepting it, we pass it through our XSD validation with Schema file.
    you can see Schema file as Set of rules, that suggests how the corresponding XML should be.

    With XSD you can not only validate the structure/hierarchy of the XML tags but also,

    • You can define Data type of the values of the nodes. [date, number,
      string etc]
    • You can also define custom data_types, [example, for node , the possible data can be one of the 12 months.. so you need to define all the 12 months in a new data type writing all the 12 month names as enumeration values .. validation shows error if the input XML
      contains any-other value than these 12 values .. ]
    • You can put the restriction on the occurrence of the elements, using minOccurs and maxOccurs, the default values are 1 and 1.

    .. and many more …

    There are some restrictions: as like,

    • An element(name) defined in XSD file must be defined with only one data-type.
    • You can’t validate a node/attribute using the value of another node/attribute.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Web Application in which I am using asp:FileUpload Control to upload
I want to use either a DTD or an XSD to describe my XML
I have scenario where I have to use the same XSD element for different
I have this big doubt. When ever i use base64Binary in an .xsd schema
I have an XSD file which is used to generate some objects which are
I have an WPF application for 60 users tops. Some of they are cashier
I use Hyperjaxb3 to generate JPA entities from XSD schema. I have a xsd:string
I use JAXB 2 to parse an XML file against an XSD schema and
In one section of my application, I use type generated from xsd scheme -
When I use xsd.exe to generate C# classes for a given XML with minimal

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.