Can anyone help/comment this ?
regards
Kai-Uwe
Am Do 11.03.2004 20:36, Kai-Uwe Schmidt <[EMAIL PROTECTED]> schrieb:
> Hi folks,
>
> i am trying to parse a xml with a schema included. I have trouble with the
> informations i get in my errorhandler.
> i am missing the attribute name in the case the xml doesnt conform to the xsd.
>
> The SAXParseException doesnt contain any data about the position of the attribute
> which caused the error. Is this a misconfiguration of the parse or a bug in my
> xml/xsd definition ? Or is this feature actually not implemented. I have back traced
> the parser up to SchemaValidator::validateAttrValue where i can find the attribute
> name with attDef->getFullName() but it doesnt seem that the following methodes
> transport this information down to my error handler (at least not with my actuall
> parser configuration). Cananyone help me out to get the name of the misfitting
> attribute ?
>
>
> Just for the case its a missing feature.
>
> The Information can be delivered to the user by modifying the resource String table
> ID 16430 like this:
> Datatype error: Type:{0}, Attribute: {2}, Message:{1}.
> and upgrading:
> emitError (XMLValid::DatatypeError, idve.getType(),
> idve.getMessage(),attDef->getFullName());
> in SchemaValidator::validateAttrValue.
>
> No clue how to make this OS independent (but i hope its not such a bad hack).
>
>
> thanks alot
> Kai-Uwe
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]