Reserved characters in input?

Dear public-ixml,

Is there an ixml idiom for ingesting reserved characters (ampersand, angle
brackets) and replacing them with XML entities? When I parse a plain-text
input document that contains an ampersand using Markup Blitz or xmq, the
output element creates a CDATA marked section for the entire content, so
that, for example, when:

"Wynken, Blynken & Nod"

matches the production for a <title> element, it emerges as

<title><![CDATA["Wynken, Blynken & Nod"]]></title>

What I'd prefer is:

<title>"Wynken, Blynken &amp; Nod"</title>

Thanks in advance for any advice!

Sincerely,

David

Received on Thursday, 13 February 2025 15:57:16 UTC