Kapil,
Thank you for this simple solution! I'm new to XML and Zope
and sometimes I get caught in learning too many new things
at once, we forget to think "simply":-) Thanks to you, I
don't need to use either External method, or XML-RPC. The
following simple DTML method works:
dtml-call
Hello all,
I have setup a query form to query a small MySQL database using
Zope. It consists of:
1. ZMySQL Database Connection (ZMySQLDA)
2. ZSQL method
3. A search interface.
Now, what I want is the user to have the option of viewing the
results in HTML or raw XML. I think there can be
if the xml format is simple you could just do it dtml, it would end up
with some extra white space but it would still be valid.
a dtml method akin to
?xml version="1.0"?
dtml-in mysqlretrieve
item
contentdtml-var content/content
squishydtml-var squishy/content
/item
/dtml-in