howto extract type pattern from xsd shema file / or DOM Document object from JAVA



I'd like to extract the value "[a-z]{1,10} " from
<pattern value="[a-z]{1,10}"></pattern>
For given Node of JDOM

how to deal with this problem. Do i have to parse the xsd file using
SAX or JDOM, and get the pattern form Document ?
Is there any other way to do this ?

here is the code of schema file
home.xsd :
_________________________________________________________

<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema";
targetNamespace="http://www.java3d.gkiro.zti.iinf.ps/budynek";
xmlns:b="http://www.java3d.gkiro.zti.iinf.ps/budynek";
xmlns:Q1="http://www.java3d.gkiro.zti.iinf.ps/budynek";>
[...]
<complexType name="TypeWall">
[...]
<attribute name="color" type="b:Color" use="optional"
default="0.0">
</attribute>
</complexType>
[...]
<simpleType name="Color">
<restriction base="string">
<pattern value="[a-z]{1,10}"></pattern>
</restriction>
</simpleType>
[...]
</schema>
_________________________________________________________

.



Relevant Pages

  • Converting a XSD to a *.DF
    ... Is there a way to convert a XSD file into a data definitions file? ... I'd like to load an entire schema file into a database (without doing ...
    (comp.databases.progress)
  • Use of GetNodeTypedValue() method to get a value of specific datat
    ... I have an XML file and an XSD file for validating it. ... getNodeTypeValue() to get an integer from an element(the restriction being ... specified in the Schema file) i get it only as VT_BSTR type. ... the dt:dt attribute for the element do i get the correct datatype. ...
    (microsoft.public.vc.atl)
  • Programatically reading a XSD File
    ... Let us say I have a schema file like this sample below. ... ..NET classes be able to read this XSD file and get all the values for each ... Prev by Date: ...
    (microsoft.public.dotnet.xml)
  • retrieving sql:datatype in xsd
    ... I need to read the xml schema file and retrieve the sql:datatype ... element value in the xsd file. ... The schema file format is below ... Can anyone give me a sample code to retrieve the value varchar ...
    (microsoft.public.dotnet.xml)
  • retrieving sql:datatype in xsd
    ... I need to read the xml schema file and retrieve the sql:datatype ... element value in the xsd file. ... The schema file format is below ... Can anyone give me a sample code to retrieve the value varchar ...
    (microsoft.public.dotnet.xml)