How can I store data such as <frame in XML

awardle

Member
Joined
Apr 21, 2003
Messages
9
Im working on an Outlook Addin which uses XML files as it data source to parse emails for html tags / words / Phrases not wanted.

However I can not work out how to store the unwanted html tags in XML for the phrases I did:

<?xml version="1.0" encoding="ISO-8859-1"?>
<Phrase_Filter>
<Name>
<ID>0</ID>
<Text>to be taken off this list</Text>
<Required>Yes</Required>
</Name>
<Name>
<ID>1</ID>
<Text>to cancel your newsletter</Text>
<Required>Yes</Required>
</Name>
</Phrase_Filter>

I need to be able to store the following in XML if possible:
<frame
<iframe
<object

Thanks for your help.

Aaron.
 
You can wrap them in CDATA, as in:
Code:
...xml snippet:
<Text><![CDATA[<iframe]]></Text>

That way you can put just about anything you want between "<![CDATA[" and "]]>". You can also parse certain strings to make them compatable. For example:
Code:
...xml snippet:
<Text>&lt;iframe</Text>

-Nerseus
 
Back
Top