Posted by Anze on 01/22/08 11:04
>> 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.
I guess I could do that... It is not a banking type of software so there is
no problem if only part of the file is imported. :)
Thanks for the answer and have fun coding!
Anze
Navigation:
[Reply to this message]
|