Hi,

When Xml validation fails against Schema for attribute node. Is there any way I 
can get the node which is in error. Validator Error message tells that it is 
attrinute or element node etc ... 

I wanted to know that is there any property or API by which I know that the 
errored Node is element Node or Attribute Node etc.

Thanks in advance if someone Clarifies

Thanks
AB  

--- On Fri, 8/21/09, ajay bhadauria <abhadau...@yahoo.com> wrote:

> From: ajay bhadauria <abhadau...@yahoo.com>
> Subject: Attribute validation Error
> To: j-users@xerces.apache.org
> Date: Friday, August 21, 2009, 9:19 PM
> Hi,
> 
> I am validating xml instance against schema using java
> Validator API with DOMsource. Now, Suppose, there is an
> error in one of the attributes of the element. 
> 
> I am able to get the element node using
> current-element-node property and the Validator is reporting
> error that attribute (name of the attribute) is not allowed
> in element. That is all good.
> 
> Is there any way that Validator can tell that which
> attribute has in error
> though in the error message it tells that.
> 
> Or I need to parse the error message to get the name of the
> attribute ? 
> 
> Please recommend
> Thanks
> AB 
> 
> 
>       
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org
> For additional commands, e-mail: j-users-h...@xerces.apache.org
> 
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org
For additional commands, e-mail: j-users-h...@xerces.apache.org

Reply via email to