Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » 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 http://www.w3.org/TR/xmlschema-1/ 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:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="0" />
<xsd:maxLength value="10" />
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>

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
XSDResourceImpl:save().
This map is also not filled at load time.
Is this a bug or is there another proposed way to read and write 'id'?

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


Current Time: Fri Apr 26 03:27:31 GMT 2024

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

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

Back to the top