Re: Problem with CDATA section in FOR XML EXPLICIT
- From: Peter Flynn <peter.nosp@xxxxxxxxxxxxx>
- Date: Thu, 02 Nov 2006 00:21:00 +0000
prashant.k.jain@xxxxxxxxx wrote:
Hi,[...]
I am trying to create a XML out of sql 2005 database using FOR XML. I
need to create XML for tables which may contain data having
non-printable ascii characters (1-32 ascii character).
But i need to store this XML data in some sql XML variable as i need to
pass it to store procedure which expects an xml input. While doing
following i gets an error saying "illegal xml character"
Using CDATA sections only protects the content against being parsed for markup. It still has to conform to the XML rules on characters, so control characters are still illegal: you'll have to filter them out or encode them in some way.
///Peter
--
XML FAQ: http://xml.silmaril.ie/
.
- Follow-Ups:
- Re: Problem with CDATA section in FOR XML EXPLICIT
- From: prashant . k . jain
- Re: Problem with CDATA section in FOR XML EXPLICIT
- References:
- Problem with CDATA section in FOR XML EXPLICIT
- From: prashant . k . jain
- Problem with CDATA section in FOR XML EXPLICIT
- Prev by Date: Problem with CDATA section in FOR XML EXPLICIT
- Next by Date: xsd sql schema relation problem bulk load - self join
- Previous by thread: Problem with CDATA section in FOR XML EXPLICIT
- Next by thread: Re: Problem with CDATA section in FOR XML EXPLICIT
- Index(es):
Relevant Pages
|
Loading