When i validate my XmlObject, i get a cryptic message as in: error: cvc-maxLength-valid.1.1: string length (string) is greater than maxLength facet (9) for '2'

How do i get more information, as in, the specific element which is invalid so i can tell the user that: "hey, the: 'userName' element is too big"

when i try to use the other methods on the XmlError type i get:
error.getMessage()= error: cvc-maxLength-valid.1.1: string length (string) is greater than maxLength facet (9) for '2'
error.getSourceName()= null
error.getCursorLocation().xmlText()= <xml-fragment xmlns=""/>

Reply via email to