Exporting a part of an XSD

Mhaxx

Usenet Archive
Joined
Jul 19, 2004
Messages
12
Reaction score
0
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>
 

Martin Honnen

Usenet Archive
Joined
Apr 8, 2000
Messages
6,174
Reaction score
0
Mhaxx said:
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.
 

Mhaxx

Usenet Archive
Joined
Jul 19, 2004
Messages
12
Reaction score
0
I don't know Pollo, I use Java Xerces as available in the jEdit editor

Can I use it as XML validator, too?

Mhaxx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,208
Messages
3,104,799
Members
249,594
Latest member
henrywalsh

Latest Threads

Top