From http://www.w3.org/TR/REC-xml/
--------------------
The ampersand character (&) and the left angle bracket (<) MUST NOT
appear in their literal form, except when used as markup delimiters,
or within a comment, a processing instruction, or a CDATA section. If
they are needed elsewhere, they MUST be escaped using either numeric
character references or the strings "&amp;" and "&lt;" respectively.
The right angle bracket (>) MAY be represented using the string
"&gt;", and MUST, for compatibility, be escaped using either "&gt;" or
a character reference when it appears in the string "]]>" in content,
when that string is not marking the end of a CDATA section.

In the content of elements, character data is any string of characters
which does not contain the start-delimiter of any markup and does not
include the CDATA-section-close delimiter, "]]>". In a CDATA section,
character data is any string of characters not including the
CDATA-section-close delimiter, "]]>".

To allow attribute values to contain both single and double quotes,
the apostrophe or single-quote character (') MAY be represented as
"&apos;", and the double-quote character (") as "&quot;".
------------------

It seems that xmlbeans 2.0.0 does not escape "<"
when it appears in the string "]]>"
I haven't tested it with later versions.

Maarten

On 7/27/06, Weiler, Frank (KBV) <[EMAIL PROTECTED]> wrote:
Hello from Berlin !

I just wonder, why the code of Saver.entitizeAttrValue() contains escaping for < to 
&lt; but not > to &gt;.
Is the use of > and apostroph restricted in attribute values ?

And next question: Has someone use sucessfull the 
XMLOptions.setSaveSubstituteCcharacters() -method ?

Regards ?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to