XSDWildcard distingishing between an actual xs:any and an implied any [message #597399] |
Wed, 28 December 2005 23:15 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03553 seconds