Exporting a part of an XSD

M

Mhaxx

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>
 
M

Martin Honnen

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.
 
M

Mhaxx

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

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,738
Latest member
JinaMacvit

Latest Threads

Top