|
Posted by Boris Stumm on 01/22/08 07:57
Anze wrote:
>> 1) validate XML before doing anything
>
> I just realised that I need to validate the XML both to be well formed and
> valid. I guess with streaming parser I need to process XML twice, first
> time to check validity and the second time to import data? Or is there a
> better way?
I'd just optimistically start processing, and if an error occurs, throw away
the partial results.
Navigation:
[Reply to this message]
|