<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>lekkimworld.comabdera</title>
    <link>http://lekkimworld.com/tags/abdera/</link>
    <description>IBM Lotus Notes/Domino, Websphere, IBM Connections, mobile, web, JavaScript, Java...</description>
    <language>en</language>
    <copyright>Mikkel Flindt Heisterberg (mh [at] intravision [dot] dk</copyright>
    <pubDate>Sat, 19 May 2012 06:50:25 GMT</pubDate>
    <dc:creator>Mikkel Flindt Heisterberg (mh [at] intravision [dot] dk</dc:creator>
    <dc:date>2012-05-19T06:50:25Z</dc:date>
    <dc:language>en</dc:language>
    <dc:rights>Mikkel Flindt Heisterberg (mh [at] intravision [dot] dk</dc:rights>
    <image>
      <title>lekkimworld.comabdera</title>
      <url>http://lekkimworld.com/tags/abdera/</url>
    </image>
    <item>
      <title>Using Abdera XPath on the Lotus Connections service document</title>
      <link>http://lekkimworld.com/2009/12/04/using_abdera_xpath_on_the_lotus_connections_service_document.html</link>
      <content:encoded>&lt;p&gt;
As always namespaces and XPath/XSLT is "funny" to play around with. Tonight I have been messing a little with the ATOM feeds available in Lotus Connections and needed to use XPath to extract a URL from the service document instead of the object model in &lt;a href="http://abdera.apache.org"&gt;Abdera&lt;/a&gt;. I didn't find it all together easy to figure out so I'll post it here in case it helps anyone. The key is to specify a java.util.Map with the two namespaces in use (atom, app) when doing the XPath (the "ns" variable) and remembering to use the correct namespaces in the actual XPath string.
&lt;/p&gt;
&lt;p&gt;
&lt;pre&gt;
Document&amp;lt;Service&amp;gt; doc = ...;
XPath x = Abdera.getNewXPath();
Map&lt;String, String&gt; ns = new HashMap&lt;String, String&gt;();
ns.put("atom", "http://www.w3.org/2005/Atom");
ns.put("app", "http://www.w3.org/2007/app");

String link = x.valueOf("/app:service/app:workspace" + 
   "/atom:link[@rel='http://www.ibm.com/xmlns/prod/sn" + 
   "/mv/theboard']/@href", service, ns));
System.out.println("Link: " + link);
&lt;/pre&gt;
&lt;/p&gt;</content:encoded>
      <category domain="http://lekkimworld.com/tags/abdera/">abdera</category>
      <category domain="http://lekkimworld.com/tags/lotus_connections/">lotus_connections</category>
      <category domain="http://lekkimworld.com/tags/xpath/">xpath</category>
      <pubDate>Fri, 04 Dec 2009 15:58:33 GMT</pubDate>
      <guid isPermaLink="false">tag:lekkimworld.com,2009-12-04:default/1259942313890</guid>
      <dc:date>2009-12-04T15:58:33Z</dc:date>
    </item>
  </channel>
</rss>


