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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:49:06+00:00 2026-05-28T16:49:06+00:00

I have a doubt in XML Vocabulary. XML schema is an alternative to the

  • 0

I have a doubt in XML Vocabulary.

XML schema is an alternative to the DTD’s.
XSLT is an stylesheet for XML

I am clear on the XML schema and XSLT.

But what is XML Vocabulary?
It is also simillar to an XML schema or DTD or it is a collection of well defined XML schema?

Sorry for asking this silly question i was googling for more than an hour to find what is a XML vocabulary but i haven got a clarity on the XML vocabulary.

I got something like this while browsing

Book XML vocabulary – just for marking up book data:

<Book>
    <Title>The Wisdom of Crowds</Title>
    <Classification>non-fiction</Classification>
    <Author>James Surowiecki</Author>
</Book>

Music XML vocabulary – just for marking up music data:

<Musical-Score>
   <Work>Winterreise</Work>
   <Genre>classical</Genre>
   <Composer>Franz Schubert</Composer>
</Musical-Song>

Here the same data is marked up, this time using a single generic XML
vocabulary:

Composition XML vocabulary – for marking up any literary data:

<Composition class="Book">
    <Title>The Wisdom of Crowds</Title>
    <Category>non-fiction</Category>
    <Creator>James Surowiecki</Creator>
</Composition>

<Composition class="Musical-Score">
    <Title>Winterreise</Title>
    <Category>classical</Category>
    <Creator>Franz Schubert</Creator>
</Composition>

After seeing this i am still confused why and how it is usefull?

  • 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-28T16:49:06+00:00Added an answer on May 28, 2026 at 4:49 pm

    For e.g let us say you want to represent person information. In HTML you have to use pre-defined vocabulary (as it doesn’t allow you to create your own) so you can represent a person as below

    <h1>Bob Joe</h1>
    <table>
    <tr>
      <th>Age</th>
      <th>Weight</th>
    </tr>
    <tr>
      <td>30</td>
      <td>140</td>
    </tr>
    </table>
    

    XML lets you create your own vocabulary or tags that is meaningful as shown in below example. You can even restrict the vocabulary (so that exchange and processing of information is simplified) using XSD or DTD.

    <Person>
      <Name>Bob Joe</Name>
      <Age>30</Age>
      <Weight>140<Weight>
    </Person>
    

    Once you have created the vocabulary using XSD then you can associate it with an XML instance using xsi namespacce as shown below

    <Person
      xmlns="MyDefaultNamespace"
      xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
      xsi:schemaLocation="MyDefaultNamespace Person.xsd">
    
      <Name>Bob Joe</Name>
      <Age>30</Age>
      <Weight>140<Weight>
    </Person>
    

    A program can validate the XML instance against a XSD programatically using the api provided in a particular language. Many languages have this support. There are also tools that can generate code to parse and create xml adhering to a XSD.

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

Sidebar

Related Questions

I have a collection of nodes xml.dom.Node objects created using xml.dom.minidom. I store them
I have one doubt regarding xml reading using Stax Parser. Expected Result: hq_seq_mast {SEQ_VAL=SEQ_VAL,
i have a doubt in openerp xml coding. Does the following function works for
I have done MySQL master1-master2 replication in windows,is work nicely. but i have doubt
I know how the Singleton pattern works, but I have doubt how it works
I have a doubt regarding xml structured content in OpenCms. I have two XML
I have a silly doubt, but I need to understand it properly. I have
I have doubt with android backstack , please consider the scenario I have two
I have doubt when i am reading difference resource for Proxy fetching or No-proxy
I am reading linux device driver book of rubini,corbet and hartmen.I have doubt regarding

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.