473,387 Members | 1,561 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Exporting a part of an XSD

I'd like to export my XML data type definitions into a separate file, so
I can use them from other XSD: how can I do?

Mhaxx
<<<example.xsd>>>

<?xml version="1.0" encoding="iso-8859-1"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.example.com"
xmlns="http://www.example.com"
elementFormDefault="qualified">
<!-- * * * * * DATA TYPES DEFINITION * * * * * -->

<xsd:complexType name="pointType">
<xsd:sequence>
<xsd:element name="x" type="xsd:nonNegativeInteger"/>
<xsd:element name="y" type="xsd:nonNegativeInteger"/>
</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="extensionType">
<xsd:sequence>
<xsd:element name="height" type="xsd:positiveInteger"/>
<xsd:element name="width" type="xsd:positiveInteger"/>
</xsd:sequence>
</xsd:complexType>
<!-- * * * * * * SCHEMA DEFINITION * * * * * * -->

<xsd:element name="project">
<xsd:complexType>
...
...
</xsd:complexType>
</xsd:element>

</xsd:schema>
Jul 20 '05 #1
5 1665


Mhaxx wrote:
I'd like to export my XML data type definitions into a separate file, so
I can use them from other XSD: how can I do?


Check out <xs:include>, see
http://www.w3.org/TR/xmlschema-0/#SchemaInMultDocs
http://www.w3.org/TR/xmlschema-1/#element-include

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #2
> Check out <xs:include>, see
http://www.w3.org/TR/xmlschema-0/#SchemaInMultDocs
http://www.w3.org/TR/xmlschema-1/#element-include


Good, but Pollo seems not to load include xsd. What about Pollo to
validate XSD? Others good XML validator?

Mhaxx
Jul 20 '05 #3


Mhaxx wrote:
Check out <xs:include>, see
http://www.w3.org/TR/xmlschema-0/#SchemaInMultDocs
http://www.w3.org/TR/xmlschema-1/#element-include

Good, but Pollo seems not to load include xsd. What about Pollo to
validate XSD? Others good XML validator?


I don't know Pollo, I use Java Xerces as available in the jEdit editor
(http://www.jedit.org/) and MSXML 4 from Microsoft and occasionally MS
..NET ValidatingReader.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #4
> I don't know Pollo, I use Java Xerces as available in the jEdit editor

Can I use it as XML validator, too?

Mhaxx
Jul 20 '05 #5


Mhaxx wrote:
I use Java Xerces as available in the jEdit editor

Can I use it as XML validator, too?


If you install the XML plugins available then jEdit validates against
DTDs and W3C XML schemas.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Angel Cat | last post by:
I'm exporting a large file from a large Production database (SQL). Users are currently updating and inserting new records. Does the export take a snapshot of the data when it starts ? or will...
3
by: sridevi | last post by:
Hello How to export data from ms-access database to excel worksheet using ASP. mainly i need to export data to multiple worksheets. it is very urgent to us. i have a sample code which works...
4
by: Lisa | last post by:
Hello, I have an ole object in my database that contains mostly pictures. I have this field in a report that I need to export to MS Word. When I export the report, I get everything accept the...
2
by: bienwell | last post by:
Hi, I have a question about exporting data from datagrid control into Excel file in ASP.NET. On my Web page, I have a linkbutton "Export data". This link will call a Sub Function to perform...
2
by: Yaseen D M | last post by:
I have aspx page which contains some gif, jpg and png images. PNG image is generated dynamically. This file is basically a graph image. The problem i am facing in exporting these images to word,...
11
by: MLH | last post by:
Anyone ever experiement importing WAB data directly into A97? Would lke a chance to look at any work done in this arena.
3
by: David P. Donahue | last post by:
I'm re-writing an application in C# that was originally written in Delphi 7. The heart of the application is a DataSet displayed in a DataGrid. One of the main functions of the previous...
2
by: atlbearcat | last post by:
Here's one that's been bugging me for about a week now... I have a form that allows users to filter records, simple enough. But I want to give them the option to export the filtered records to...
7
by: leninv | last post by:
Hi, I have the following code where 'recs' is a record set. For i=0 to recs.Fields.Count - 1 if i = 0 then pindnt = string(itmlvl*2," ") response.write pindnt &...
1
by: cmgmyr | last post by:
Hey All, I'm having a little problem with exporting data from my database. The problem is that the query seems to be too much for PHP and MySQL to handle since it is timing out. I have the timeout...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.