Hi, I have been playing with the ASBuilder example that shows how to validate a set of input xml documents with a xsd schema definition. Currently what this code does is register an error handler that prints out information about what violating nodes were in the parsed input. The error handler is the ASBuilder class itself and thus implements the handlerError method. In this method it prints out some of the specifics of the error by accessing the DOMLocator object included in the DOMError.
My goal was to actually try and remove some of the offending nodes by using the DOMLocator.getErrorNode() function, but this returns null. Its my asssumption that somewhere in the parser when it encounters an error, it decides how to build the resulting error. My guess is currently it just sets that error node member to null instead of including a reference to that object. I've tried to print the stack at that point and work backwards to where i think its happening, but have been unsuccessful to this point. I was just wondering whether anyone else has done something like this or modified the code that builds the error and could give some hints on how to modify it to include the node reference. I was hoping there might have been a set-able feature in either the parser or validator that would tell it to include the node reference, but was unable to find anything. any ideas? thanks, Mike --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]