Re: Ampersand and db:results
Martin Klang <[email protected]> Thu, 17 Jul 2003 12:13:49 +0000 (GMT)
| Newsgroups | gmane.text.xml.o-xml |
|---|---|
| Message-ID | <[email protected]> |
Ken, I've now changed the StreamResultHandler to escape certain characters in text output and attribute values - &, < and >. This should solve your problem without using the DOMResultHandler (eg by specifying -xsl on the command line). The update is part of the 0.9.6 release, let me know if it for some reason doesn't work as expected. cheers, /m Martin Klang http://www.o-xml.org - the object-oriented XML programming language On Mon, 14 Jul 2003, Ken McCloskey wrote: > Martin, > > o:xml is handy and nifty, particularly the database extensions. However, if > I do a db:query that returns a column that contains the ampersand, I run > into trouble, since the ampersand is of course not allowed in XML. > > My first thought was to include the replace function, but that can't be > nested in db:results. Can you think of another way to make this work? > > Thanks for all your help. > > Ken > > _________________________________________________________________ > Protect your PC - get McAfee.com VirusScan Online > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > _______________________________________________ > o-xml mailing list > o-xml-zRfLyl9bSvv/[email protected] > http://lists.pingdynasty.com/mailman/listinfo/o-xml >