<[EMAIL PROTECTED]> wrote on 10/04/2005 04:06:09 AM:

> It is easy to retrieve typeInfo (via getElementDeclaration) of a 
> Node if this node has been validated and therefore is an instanceof 
> PSVIElement.
> But how can I come to ElementDeclaration when the node was not 
> validated. I do have a schemagrammar in the form a an XSModel.  I 
> cannot see another way to find the related ElementDeclarion other 
> then traversing and analyzing the XSModel. But this can be a 
> complicated task and I would prefer a more simple method.
> A related question.

If the DOM isn't annotated with PSVI then something external needs to make 
the association. If you're using the XSModel for this purpose you do need 
to traverse it.

> In the DOM Level 3 Validation Specification is 
> an interface ElementEditVAL, with methods like getAllowedChildren. 
> Is there any chance these specifications will be implemented in Xerces?

Perhaps in a future release though I'm not aware of any plans to work on 
it. There hasn't been much discussion about it on the lists.

> I' am using to Xerces 2.6.2. 
> DD 

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to