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";>&lt;definition&gt;&lt;gcxtable&gt;&
lt;community&gt;matsmarauders&lt;/community&gt;&lt;tablename&gt;tblMatsS
urvey22&lt;/tablename&gt;&lt;status&gt;&lt;/status&gt;&lt;name&gt;mynews
urvey22&lt;/name&gt;&lt;id&gt;83&lt;/id&gt;&lt;description&gt;mynewsurve
y7&lt;/description&gt;&lt;parentid&gt;0&lt;/parentid&gt;&lt;/gcxtable&gt
;
&lt;/definition&gt;</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]

Reply via email to