When I try to read nodes from the sunRise session context I I can't got any 
deeper than the first level.

When I use this file:
<doc xmlns:sunshine="http://cocoon.apache.org/sunshine/1.0";>
   <sunshine:getxml context="sunRise" path="/"/>
</doc>

  I get :
<?xml version="1.0" encoding="UTF-8" ?>
- <doc xmlns:sunshine="http://cocoon.apache.org/sunshine/1.0";>
- <authentication>
<ID>bert</ID>
<role />
- <data>
<name>bert</name>
<role />
<ID>bert</ID>
<user>bert</user>
<title />
<firstname />
<lastname />
<company />
<street />
<zipcode />
<city />
<country />
<phone />
<fax />
<email />
<bankid />
<bankname />
<accountid />
</data>
<useragent>Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; 
T312461)</useragent>
<type>sunrise</type>
<media>html</media>
</authentication>
</doc>

When I request just the ID using
<doc xmlns:sunshine="http://cocoon.apache.org/sunshine/1.0";>
   <sunshine:getxml context="sunRise" path="/authentication/ID"/>
</doc>

I get
- <doc xmlns:sunshine="http://cocoon.apache.org/sunshine/1.0";>
<ID>bert</ID>
<role />
- <data>
<name>bert</name>
<role />
<ID>bert</ID>
<user>bert</user>
<title />
<firstname />
<lastname />
<company />
<street />
<zipcode />
<city />
<country />
<phone />
<fax />
<email />
<bankid />
<bankname />
<accountid />
</data>
<useragent>Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; 
T312461)</useragent>
<type>sunrise</type>
<media>html</media>
</doc>

So only the root node from the context is gone.  I was expecting to get the 
ID of the user, not the whole context.  The sunRise docs specifically 
states that it must be possible to request the ID of the user by using 
XPath statements in the sunshine:getxml node.  Am I missing here something 
or is the session context not treated as XML nodes, but as text?

Thanks,
Bert


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

Reply via email to