For example if I do this:
<xsp:content>
<xsp:expr>$results</xsp:expr>
</xsp:content>
I get this:
<?xml version="1.0" encoding="UTF-8"?>
<tabletool table="http://gcx.ccci.org/NS/taglibs/TableTaglib/v1"
xsp="http://apache.org/xsp/core/v1"
param="http://axkit.org/NS/xsp/param/v1"
util="http://apache.org/xsp/util/v1"><definition><gcxtable>&
lt;community>matsmarauders</community><tablename>tblMatsS
urvey22</tablename><status></status><name>mynews
urvey22</name><id>83</id><description>mynewsurve
y7</description><parentid>0</parentid></gcxtable>
;
</definition></tabletool>
how can I get it to not think its cdata?
Thanks,
Ken.
-----Original Message-----
From: Ken Burcham [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 17, 2003 2:24 PM
To: [EMAIL PROTECTED]
Subject: problem getting xml back from an object
Hey guys,
So this should be easy. :-)
I have an xsp that calls a method on an object. That object returns
wellformed xml, but isn't a taglib. How do I wrap it so that the xsp
will return the xml as xml? What I get is this:
<definition><gcxtable><community>matsmarauders</community><tablename>tbl
MatsSurvey21</tablename><status></status><name>mynewsurvey21</name><id>8
2</id><description>mynewsurvey7</description><parentid>0</parentid></gcx
table>
</definition><?xml version="1.0" encoding="UTF-8"?>
<tabletool table="http://gcx.ccci.org/NS/taglibs/TableTaglib/v1"
xsp="http://apache.org/xsp/core/v1"
param="http://axkit.org/NS/xsp/param/v1"
util="http://apache.org/xsp/util/v1"/>
which is obviously a bit mixed up. I've tried wrapping it in various
things like <xsp:content> and with <xsp:expr> and the like to no avail.
thanks.
Test.xsp
---------------------------------
<?xml version="1.0"?>
<?xml-stylesheet href="NULL" type="application/x-xsp"?>
<tabletool xmlns:table="http://gcx.ccci.org/NS/taglibs/TableTaglib/v1"
xmlns:xsp="http://apache.org/xsp/core/v1"
xmlns:param="http://axkit.org/NS/xsp/param/v1"
xmlns:util="http://apache.org/xsp/util/v1"
>
<xsp:logic>
use GCX::TableTaglib;
my $results = GCX::TableTaglib->buildNewTableReports(%argvars);
print $results;
</xsp:logic>
</tabletool>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]