I want to get some xml data out of a xml database.
I have written some xml code to get the xml data, but I get only the source
code.

Output of the browser:

<?xml version="1.0" encoding="UTF-8" ?> 
<collection:results query="//person[contains(fname,'John')]" resources="1"
xmlns:collection="http://apache.org/cocoon/xmldb/1.0";> 
<collection:result docid="address1"> 
<person src:col="/db/addressbook" src:key="address1"
xmlns:src="http://xml.apache.org/xindice/Query";> 
<fname>John</fname> 
<lname>Smith</lname> 
<phone type="work">563-456-7890</phone> 
<phone type="home">534-567-8901</phone> 
<email type="home">[EMAIL PROTECTED]</email> 
<email type="work">[EMAIL PROTECTED]</email> 
<address type="home">34 S. Colon St.</address> 
<address type="work">9967 W. Shrimp Ave.</address> 
</person> 
</collection:result> 
</collection:results>

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to