Re: XML and ASP
by "Mike Taylor" <lonewolf(at)one.net>
|
Date: |
Thu, 2 May 2002 20:06:39 -0400 |
To: |
<hwg-languages(at)hwg.org> |
References: |
|
|
todo: View
Thread,
Original
|
|
Thanks, Nik for your help on this.
Also, based on Nik's suggestion, I did a search on "CDATA" and found another
good explanation of what Nik described to me:
http://www.w3schools.com/xml/xml_cdata.asp
Hope that helps others as well.
Mike
----- Original Message -----
From: "nik krimm" <nik(at)krimm.net>
To: "'Mike Taylor'" <lonewolf(at)one.net>
Sent: Thursday, May 02, 2002 4:36 PM
Subject: RE: XML and ASP
> You can
> 1. Wrap the commentary with a <![CDATA[ commentary here ]]> section (tag)
> before inserting it in the XML.
> 2. Use a vbscript routine to escape the '<' characters (or remove the
html
> entirely) in the commentary before inserting it in the XML.
>
> 1. is the option i would generally prefer, but its hard to tell what your
> specific context is from your description below.
>
> -----Original Message-----
> From: owner-hwg-languages(at)hwg.org [mailto:owner-hwg-languages(at)hwg.org]On
> Behalf Of Mike Taylor
> Sent: Thursday, May 02, 2002 2:23 PM
> To: hwg-languages(at)hwg.org
> Subject: XML and ASP
>
>
> I have an ASP page that I'm using to produce an XML document.
>
> Inside one of the tags are the contents of a commentary that we post.
>
> The catch here is that we have someone in another department who only
> knows some basic HTML tags who embeds this HTML inside the commentary to
> produce bold phrases, italics, images and hyperlinks.
>
> So, when I try to view this outputted page, it gives me an error because
> it's seeing the HTML that is peppered throughout these commentaries. It
> apparently thinks these are XML tags, when in fact it's just HTML.
>
> Since the HTML is necessary, is there any way around this? Do I have to
> specify something in my Schema file that permits HTML to be included?
>
> Thanks.
>
> Mike
>
>
>
>
>
>
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA