Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » XSDWildcard distingishing between an actual xs:any and an implied any
XSDWildcard distingishing between an actual xs:any and an implied any [message #597399] Thu, 29 December 2005 04:15
Francis Upton IV is currently offline Francis Upton IV
Messages: 472
Registered: July 2009
Location: Oakland, CA
Senior Member
The XSDWildcard seems to be emitted in the case where an element has no
type information; and it is also emitted in response to an actual xs:any
element appearing in the schema.

In both cases, the XSDWildcard appears the same (surprisingly it refers
to a DOM element from Xerces of xs:any).

I'm doing an implementation where I create a tree of elements, and I
need to distinguish these two cases. In the case of an explicit xs:any
element appearing in a schema, I need to take a different action from
the case where an element is simply untyped.

Right now, I determine the difference by seeing if the parent of the
enclosing particle is an XSDModelGroup which has more than one child.
In this case, I assume I'm working with an explicit xs:any.

Does this seem right? Is there a better way to go?

Thanks,

Francis


Previous Topic:why isn't element declaration given "anyType" type by default
Next Topic:XSDWildcard distingishing between an actual xs:any and an implied any
Goto Forum:
  


Current Time: Wed Oct 22 00:11:36 GMT 2014

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

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