Connecting Tech Pros Worldwide Forums | Help | Site Map

reading Xsd file in java

Newbie
 
Join Date: Oct 2009
Posts: 1
#1: Oct 15 '09
Hello all,

I want to read the following file through java....
Anyone who knows plz help me ...
The file is


Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xs:schema xmlns="http://ContextML/1.6c" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://ContextML/1.6c" elementFormDefault="qualified" attributeFormDefault="unqualified">
  3.     <xs:simpleType name="Temperature">
  4.         <xs:annotation>
  5.             <xs:documentation>Value of Temperature</xs:documentation>
  6.         </xs:annotation>
  7.         <xs:restriction base="xs:string">
  8.             <xs:enumeration value="OK"/>
  9.             <xs:enumeration value="ERROR"/>
  10.             <xs:enumeration value="WARN"/>
  11.             <xs:enumeration value="TRUE"/>
  12.             <xs:enumeration value="FALSE"/>
  13.         </xs:restriction>
  14.     </xs:simpleType>
  15.     <xs:simpleType name="Your Id">
  16.         <xs:annotation>
  17.             <xs:documentation>Value available for a Your Id</xs:documentation>
  18.         </xs:annotation>
  19.         <xs:restriction base="xs:string">
  20.             <xs:enumeration value="id"/>
  21.             <xs:enumeration value="url"/>
  22.         </xs:restriction>
  23.     </xs:simpleType>
  24.     <xs:element name="Parameters">
  25.         <xs:annotation>
  26.             <xs:documentation>Parameter</xs:documentation>
  27.         </xs:annotation>
  28.         <xs:complexType>
  29.             <xs:simpleContent>
  30.                 <xs:extension base="xs:string">
  31.                     <xs:attribute name="n" type="xs:string" use="required"/>
  32.                 </xs:extension>
  33.             </xs:simpleContent>
  34.         </xs:complexType>
  35.     </xs:element>

Dököll's Avatar
Moderator
 
Join Date: Nov 2006
Location: Upstate NY - US
Posts: 2,268
#2: 2 Weeks Ago

re: reading Xsd file in java


Hi!

This probably is not what you need:

http://mindprod.com/jgloss/xsd.html

but I could not find you anything; I would like to invite you to search and see

http://www.coderanch.com/t/428314/XML-Related-Technologies/Reading-XML-using-XSD-schema


My Google results:-)

http://www.google.com/search?hl=en&r...&start=10&sa=N

It's probable you'd already scanned these,

L8ter!
Reply