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 9240851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:15:37+00:00 2026-06-18T08:15:37+00:00

In any xsd files, there are many times we found an element type refered

  • 0

In any xsd files, there are many times we found an element type refered to a xml namespace, for example in the following xsd:

<xsd:element type='x:SOME_TYPE_NAME'>

Type of the element is mentioned in the namespace ‘x’ with name ‘SOME_TYPE_NAME’. I want definition or xsd definition of this type from that particular xml namespace. How do I do this? Please help.

  • 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-06-18T08:15:37+00:00Added an answer on June 18, 2026 at 8:15 am

    First, note that there is no central authority providing the information you are looking for, and so there is no guarantee that for a given namespace x and type name SOME_TYPE_NAME there will be exactly one XSD type definition. There might be multiple schemas for the same namespace, which differ precisely in their definition of SOME_TYPE_NAME.

    There is also no universal rule that says how the owner of a given namespace (here, the namespace bound to the prefix x) should organize schema documents for that namespace, or where they should go. In some cases, all schema documents used in a given system might be cached in some local schema repository (database management systems are very fond of this approach).

    So things may vary a lot. But quite often, it’s possible to find the (or at least some) definition you are looking for.

    The element declaration you quote refers to a type defined in a given namespace. If that’s not the target namespace of the schema document in which the declaration occurs, then the schema document must contain an explicit xsd:import element importing the namespace bound to prefix x. Quite often that xs:import element will carry a schemaLocation attribute which provides a hint about where to look for declarations in that namespace. The schemaLocation attribute is not required, and the validator is not obligated to dereference that URI (perhaps it has a local repository it prefers, or perhaps it has been invoked with a run-time parameter instructing it to look elsewhere), but many validators do follow the link by default (and even if they don’t, that URI is one place for you to look — the author of the schema document you’re reading has said there is a schema document there, and that’s a hint worth exploiting).

    It is also often helpful to dereference the namespace name to see if there is any documentation there. Namespace owners have no obligation to put any dereferenceable documentation at a namespace name, and it’s often regarded as very bad practice for software to dereference a namespace name every time it sees an element in the namespace, but you’re not software, you’re a human being, and it’s not bad practice for you to dereference the namespace name. Some namespace owners place a schema document at the namespace name, some put a RDDL document (HTML expanded with machine-processable pointers to schemas, documentation, etc.) there.

    And for some well known namespaces you can find documentation by the normal process of Web searching.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There is a set of XSD files, with the following types described in them:
Although the XML file being described by the XSD Schema may contain any unicode
I want to connect my log4j.xml with log4j.xsd (xml schema). Project don't have any
Are there any tools available for transforming types defined in an xsd schema (may
Is there any application that can use as input a XML file (wsdl in
I'm looking for an XSD Documentation Generator for .NET. Please, provide any references. Note:
Any Access guru's out there that can help me out? Trying to figure out
Any tips on making the following option elements draggable? <select id=expenseSelect multiple=multiple style=height:200px> <option
Visual Studio 2010 now opens XSD files in design mode by default. I can't
I use JAXB 2.1 to generate Java classes from several XSD files that I

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.