Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Help with reader adapter extension
Help with reader adapter extension [message #579051] Tue, 30 September 2003 20:29
Lance Phillips is currently offline Lance PhillipsFriend
Messages: 210
Registered: July 2009
Senior Member
All,
I'm working on an xmi reader adapter implementation that can read legacy
models we have that represent our old approach to xsd. What the reader does
is interpret what Eclipse XSD element / attribute to create in place of our
old xsd implementation. I'm running into problems with Attributes and both
Complex / Simple Types (I'm sure others as I get farther). The problem is
that when I run into an Attribute representation from our legacy model, I
use the XSDFactory.eInstance to create a new XSDAttribute. However, I am
unable to add the Attribute to it's parent (XSDSchema, XSDElement or
XSDComplexType). What steps am I missing to add Attributes, Types and
Groups to their parent when processing in an xmi reader adapter
implementation? It seems to be missing type information that I don't have
yet as I do not get any of the features for the new entity until I've
already had to create the entity and add it to a parent. I have also tried
using the resolveXXX methods on XSDConcreteComponentImpl to no avail.

HELP!!

thanks,

lp
Previous Topic:Help with XSDAnnotation
Next Topic:generating sample xml from xsd
Goto Forum:
  


Current Time: Thu Apr 25 05:45:24 GMT 2024

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

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

Back to the top