One solution is to use character entities
These entities are the predefined entities for writing symbols
& for writing & symbol
" for writing " symbol
< for writing < symbol
> for writing > symbol
' for writing ' symbol
When you replace < with @lt; , you should be ok with embedding this within
another < > tag
L Commons <[log in to unmask]> on 09/21/2000 01:33:40 PM
Please respond to General discussion of Extensible Markup Language
<[log in to unmask]>
To: [log in to unmask]
cc: (bcc: Santosh Daryani/IT/Aon Consulting)
Subject: xml in html (and vice versa)
We are developing an application which uses xml templates to control
processing of a back end system, which produces text output, which may or
may not be an xml document. In some cases the original template contains
html tags, because the output will be an html page.
For the most part this works well, but we've run into a problem when we want
to use one of our xml tags to specify the attribute of an html tag:
<INPUT NAME="<custom_xml_tag />" TYPE="checkbox">
Or back end process will look up or calculate some value to insert in place
of <custom_xml_tag />. Unfortunately, we are unable to parse the original
document because we can't have a '<' in the attribute value of the html tag.
Can't we tell the parser (Xerces) to ignore the html tags (not treat them as
xml, since they're not in the DTD)? Any other suggestions?
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at