Re: Fwd: [xml-dev] Not using mixed content? Then don't use XML

From
Ihe Onwuka <>
To
"Simon St.Laurent" <>
Date
2013-04-09T17:11:44Z
ID
<>
Thread
Re: Fwd: [xml-dev] Not using mixed content? Then don't use XML
On Tue, Apr 9, 2013 at 5:51 PM, Simon St.Laurent <> wrote:
>
>> Then, do you just expect the xml to be correct in your application, or
>> do you still perform the business rule checks?  The reality of the
>> situation is you have to perform the checks again, so then you open
>> yourself up to a mismatch between xsd and application.  You would of
>> course much prefer to provide the user with tailored errors messages,
>> they would prefer that too.
>
>
> I would argue for piling it all into business rule checks, with special
> emphasis on generating meaningful messages - not to mention an opportunity
> for human intervention so you have a sense of what's going weird.
>

No.

Because then you are at the mercy of some developer who could be in
another part of the world and may not even be a native speaker of your
language for parsing your business rules.