[xsd-users] Non-xml data in attributes with xsd:string,
xsd:normalizedString
Boris Kolpackov
boris at codesynthesis.com
Thu Feb 19 08:25:07 EST 2009
Hi Bill,
Bill Pringlemeir <bpringle at sympatico.ca> writes:
> Harness code with the likes of,
>
> normTest copy("file"); //...
> copy.e1().append("\t\t\t\t\t\tno\ttabs?");
> copy.a1().append("\t\t\t\t\t\tno\ttabs?");
>
> Can generate serialization errors (actually parser errors on the other
> side, but it was actually an error to generate invalid XML unless it
> is program error not to put non-printables in the std::string?).
I tried the above fragment with XSD 3.2.0 and both Xerces-C++ 2.8.0
and 3.0.0. I get the following XML:
<normTest a1="0						no	tabs?">
<e1>file no tabs?</e1>
</normTest>
Is this not what you expect to get? Which version of Xerces-C++ are you
using?
Boris
More information about the xsd-users
mailing list