awardle Posted April 21, 2003 Posted April 21, 2003 I'm 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. Quote
*Experts* Nerseus Posted April 21, 2003 *Experts* Posted April 21, 2003 You can wrap them in CDATA, as in: ...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: ...xml snippet: <Text><iframe</Text> -Nerseus Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
awardle Posted April 22, 2003 Author Posted April 22, 2003 Excellent! Thanks for your help. Aaron Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.