Serialize() can create xml that is not valid

Jul 30, 2014 at 2:34 PM
Hello,
I always thought, that an xml-string that was created with the Serialize() method should be valid.
So is there no XML-Validation involved with the Serialize-Method? shoul i additionally validate the created xml against the schema after Serialize() ?

I have the case, that when im filling a stringMember with over 4000 chars, and the element is defined as max 4000 in the xsd-schema, that Serialize will create an xml that is not valid.

Thanx for your answers!

Greets a.s.