A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
XML and Related Technologies
Validate xml and separate the valid and invalid data
Joined: Feb 05, 2013
Feb 05, 2013 10:23:08
I want to validate xml against its schema using SAX. How to extract the valid data into a "valid xml file" and invalid data into "invalid xml file". Any suggestions or code samples?
Joined: Aug 07, 2007
Feb 05, 2013 16:05:54
Welcome to the Ranch.
I think this would be better off in the XML forum so I'm moving it for you.
Joined: Oct 14, 2005
Feb 05, 2013 17:32:21
That isn't how validation by schema works. All you get from that is "OK" or "Not OK, here's why".
And anyway it's quite unlikely that the set of nodes rejected by the schema is going to be a well-formed XML document. Even if the schema did proceed beyond the first invalid node, which it doesn't.
Have you checked out
subject: Validate xml and separate the valid and invalid data
Attribute "value" must be declared for element type "property"???
SchemaValidation and HandlerChains
How to read Data From Excel File Using servlets,jsp
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015