You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2002/10/21 15:48:44 UTC
DO NOT REPLY [Bug 13817] New: -
Getting mandatory root elements from schema (SchemaGrammar or XSModel)
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13817>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13817
Getting mandatory root elements from schema (SchemaGrammar or XSModel)
Summary: Getting mandatory root elements from schema
(SchemaGrammar or XSModel)
Product: Xerces2-J
Version: 2.2.0
Platform: Other
OS/Version: Other
Status: NEW
Severity: Enhancement
Priority: Other
Component: XML Schema Structures
AssignedTo: xerces-j-dev@xml.apache.org
ReportedBy: daniel.macho@aspentech.com
CC: daniel.macho@aspentech.com
It would be very nice being able to access mandatory root elements
for an schema.
Nowadays querying SchemaGrammar objects for ELEMENT_DECLARATION returns all
top level element declarations (but not the 'root' or the top level ones):
XSNamedMap elementDeclarations = _sg.getComponents
(XSConstants.ELEMENT_DECLARATION);
(Where _sg is a reference to an SchemaGrammar object)
I have managed to get that information by querying all elements not referenced
in any type as the candidates to be the 'top level required' elements. But I
think this kind of query should be Xerces implementation.
Regards,
Daniel Macho.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org