[xsde-users] XSD/e non-validating parsers and invalid XML input

Konstantin Tokarev annulen at yandex.ru
Thu Feb 10 06:31:41 EST 2011


Hi Boris,

> The generated code is safe but you probably won't be able to write your
> application in a way that we will be safe. Just to give you an example,
> consider a required element of a variable-length type. If the XML being
> parsed misses this element, the object model will have a NULL pointer for
> this element. But there is no easy way (API-wise) for you to determine
> that this value is missing. 

Is there a chance it will be possible in some future version?

>
>>  If it is not well-formed?
>
> If the document is not well-formed, you will get a parsing error. There
> is no way to disable well-formedness checking.

For example, if document is unfinished (some information loast at the end so there
are unclosed opening tags), will it be possible to parse available data?

-- 
Regards,
Konstantin



More information about the xsde-users mailing list