Hi John,
>From my understanding of things, in the case of validation, the xml document is
validated against a DTD or XSD before it's converted into java beans.
This is not the case when there is no validation.
Of course converting an xml document into a javabean implies an implicit validation.
However I could specify in the XSD the values of such and such an attribute. For
example the attribute lob is necessarily one of "ai", "as", "aa", "ap".
If the validation is deactivated then this constraint won't be checked, Castor
will just populate my attributes in the java beans.
HTH,
Cedric
Quoting "Hoebel, John" <[EMAIL PROTECTED]>:
>
> This is probably a dumb question, but ...
>
> What is the difference between validating and not validating when
> unmarshaling an XML document into Castor generated class objects?
>
> You are trying to move xml values into objects and attributes of
> objects. I would think that would require some amount of validation just
> to put the data into the objects. I have tried to find info on this on
> the web site but have only seen question on how to set validation on and
> off.
>
> Thanks in advance for any information on this subject.
>
> John
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> MailScanner thanks transtec Computers for their support.
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
>
>
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev