Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Load XML Schema from File and extract Types
Load XML Schema from File and extract Types [message #597608] Sun, 19 February 2006 06:35
Eclipse User
Originally posted by: marcopk84.yahoo.it

Hello to all !
it is the first time that I write here......

I am developing a EditorXml that it allows to validate an XML file xml
based on the XML Schema contained in a file .xsd !

I'm interested for being able to give some suggestions during the writing
, I need to load the names of the SympleTag ComplexTag declared in .xsd
file .

For Example .... if I have an xsd file like this ...

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:simpleType name="stringtype">
<xs:restriction base="xs:string"/>
</xs:simpleType>

<xs:simpleType name="inttype">
<xs:restriction base="xs:positiveInteger"/>
</xs:simpleType>

<xs:complexType name="shiptotype">
<xs:sequence>
<xs:element name="name" type="stringtype"/>
<xs:element name="address" type="inttype"/>
<xs:element name="city" type="stringtype"/>
<xs:element name="country" type="stringtype"/>
</xs:sequence>
</xs:complexType>

</xs:schema>

I'm interested to get for example "shiptotype" "name" "address" "city"
"country" ...... but no "stringtype" or "xs:positiveInteger"

I hope you can help me with suggestion or JavaCode ....

Sorry for my English ...
Previous Topic:Castor vs. XSD?
Next Topic:Load XML Schema from File and extract Types
Goto Forum:
  


Current Time: Mon Sep 01 19:39:16 EDT 2014

Powered by FUDForum. Page generated in 0.07233 seconds