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

  • Home
  • SEARCH
  • 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 6863977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:51:15+00:00 2026-05-27T02:51:15+00:00

I have two xml files and I need to create one xsd for both.

  • 0

I have two xml files and I need to create one xsd for both. This is the first time I am dealing with xml files. How can I create one xsd for both xml files and validate that they are correct?

My first xml file:

<?xml version="1.0" encoding="UTF-8"?>
<specification xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DATA>
 <Id>S2</Id>
  <Name>sai</Name>
 <Service>manufaturer</Service>
  <ref_complete_customer path="/work/bsr.xml"/>
  <ref_complete_customer path="/work/srr.xml"/>
 <Service_Customers>
  <Customer Id="bs"/>
 </Service_Customers>     
 <Service_Suppliers>
     <Supplier Id="r"/>
    <Supplier Id="b"/> 
    <Supplier Id="L"/>
 </Service_Suppliers>
 </DATA>
 </specification>

My second xml file:

<?xml version="1.0" encoding="UTF-8"?>
 <universitylist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <university>
 <refstr>bdvl_te_skrm_stc</refstr>
 <ref_complete_customer path="/work/bsr.xml"/>
 <Code>A0f11478</Code>
 <Area>sku</Area>
 <started>1987</started>
 <branch>
  <electronics>
    <students Nr="120" ece="ab">
    <student Name="svr" year="2010" rank="3"/>
    <student Name="bvr" year="2010" rank="1"/>
    </students>
  </electronics>
 </branch>
 <semister>
    <semister num="3"/>
 </semister>
 <address>
   1.address of student
  <extrainfo>
  </extrainfo>
 </address>
 </university>
</universitylist>

This is my approch

  specification.xsd for frist file.
 universitylist.xsd for second file.

combined xsd

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> 

<xs:include schemaLocation="specification.xsd" />
<xs:include schemaLocation="universitylist.xsd" />

</xs:schema>
  • 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-27T02:51:15+00:00Added an answer on May 27, 2026 at 2:51 am

    I’m not sure why you would want a single schema that describes both document instances, since they seem completely unrelated. But the fact that they are unrelated makes it trivial – you just combine the two XSDs. For example, if you currently have a.xsd and b.xsd, then you can create a new c.xsd that simply does an xs:include on both of these.

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

Sidebar

Related Questions

I have two XML files with two different XSD schemas and different namespaces. They
Suppose I have two XML files. First XML File: <?xml version=1.0?> <AccessRequest xml:lang=en-US> <AccessLicenseNumber>Your_License</AccessLicenseNumber>
this is my situation: I have two org.w3c.dom.Document created from two xml files. What
I have an xml file like this: <root> <item> <name>one</name> <status>good</status> </item> <item> <name>two</name>
I have two xml files with the same data but different tags. I need
For some reasons I can't use xml layout files. But I need to create
I have two XML files. They are similar, but there are two nodes of
I have two XML files that are generated by another application I have no
In this the catalog.xml file. I have two books who have the same inventory
Is it a bad thing to have two xml columns in one table? +

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.