Re: Ampersand and db:results
Martin Klang <[email protected]> Tue, 15 Jul 2003 10:49:27 +0000 (GMT)
| Newsgroups | gmane.text.xml.o-xml |
|---|---|
| Message-ID | <[email protected]> |
I suspect this is a deeper running problem with creating strings. What is the actual error message? If you are running the ObjectBox standalone, try using/not using the -xsl flag to change the output handler. The output method should either escape non-XML chars, or turn strings with reserved chars into CDATA sections. If possible i'll include a fix with the next ObjectBox release, which i'm hoping to have ready sometime this week. (version 0.9.6 will also include regular expressions, exception handling, BSF support and a few other goodies!) 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 >