Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

  • *Experts*
Posted

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

"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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...