The DOM3 AS features are only partially implemented in Xerces, so it's not
a surprise that you got the "unsupported" exception.
Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
[EMAIL PROTECTED]
Nicolas.GOLOUBENKO
@sercel.fr To: [EMAIL PROTECTED]
cc:
02/21/2002 09:11 Subject: ASModel
AM
Please respond to
xerces-j-user
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]