Hi everybody,
I encountered a problem using the ASModel class.
I don't know how to get the "minInclusive" and "maxInclusive" values of a given
element.
Example :
* Part of my XSD schema :
<xsd:element name="segdCodeL">
<xsd:complexType>
<xsd:simpleContent>
<xsd:restriction base="LongDef_T">
<xsd:maxInclusive value="9"/>
<xsd:minInclusive value="0"/>
<xsd:attribute ref="label" fixed="Segd Code"/>
<xsd:attribute ref="continous" fixed="true"/>
<xsd:attribute name="precision" type="xsd:long" fixed="1"/>
</xsd:restriction>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
* Code for parsing the schema :
ASModel asModel = null;
asModel =
m_parser.parseASURI("file:///c:/ng1175/XML/dictionary/hciLAND_SENSOR_LIMITS_TYPE.xsd");
// m_parser of type DOMASBuilder
m_parser.setAbstractSchema(asModel);
When I try to call methods on the asModel instance, the exception
"org.w3c.dom.DOMException: Not Supported" is raised.
So it's impossible to browse the schema via the asModel instance to get the
minInclusive and maxInclusive values for the "segdCodeL"
element.
Can anybody help me ?
Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]