Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » How to access the ID of a XSDComponent
How to access the ID of a XSDComponent [message #604138] Thu, 02 April 2009 16:04
Joachim is currently offline JoachimFriend
Messages: 16
Registered: July 2009
Junior Member
The specification describes a field
'id' at nearly each XSD Element, e.g. "xsd:attribute".
I don't find this field in the ECORE model xsd.ecore.

My problem is that I want to read and write this field.
I have this XSD excerpt:
<xsd:attribute name="B" id="r19">
<xsd:restriction base="xsd:string">
<xsd:minLength value="0" />
<xsd:maxLength value="10" />

I don't know how to read the value of the 'id' through the
XSDAttributeDeclaration but succeed via the field 'element:DOMElement'.
I don't know how to set the value of 'id'. I tried with filling the
XSDResourceImpl:setIntrinsicIDToEObjectMap(), but this has no effect for
This map is also not filled at load time.
Is this a bug or is there another proposed way to read and write 'id'?

Previous Topic:No targetnamespace set for local elements inside complextype
Next Topic:EMF/XSD Activities Example
Goto Forum:

Current Time: Fri Jul 10 00:37:50 GMT 2020

Powered by FUDForum. Page generated in 0.01685 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top