Hi,
that was the result of 
<?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 xmlns:src="http://xml.apache.org/xindice/Query";
      src:col="/db/addressbook"
      src:key="address1">
      <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>

This is a .xml - file used in the sitemap.xmap.
And want I want to have is something like that

<person>
  <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>

but I don't know what to do.

        -----Ursprüngliche Nachricht-----
        Von:    KOZLOV Roman [mailto:[EMAIL PROTECTED]]
        Gesendet am:    Montag, 19. August 2002 09:45
        An:     [EMAIL PROTECTED]
        Betreff:        Re: Cocoon and Xindice

        Hi,
        What source do you mean? The snippet you have sent is a result of
xpath query
        on Xindice database (with xpath value
"//person[contains(fname,'John')]" on the
        "/db/addressbook" collection).
        What do you mean by "xml code to get xml data"? Xindice data are
retrieved by
        URL's with or without xpath parameter. Then the result xml could be
processed
        in a pipeline.
            Roman

        praktikant wrote:

        > 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]>


        
---------------------------------------------------------------------
        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]>

---------------------------------------------------------------------
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