<?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/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: XPath query in xml content in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/xpath-query-in-xml-content/m-p/38171#M20222</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No that is not currently possible directly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, using the templating language API built into Alfresco, it is possible to locate documents (either by XPath, name or Lucene search) and then walk the DOM of a document as XML nodes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Take a look at this document for info on those features:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.alfresco.org/mediawiki/index.php/Template_Guide" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/mediawiki/index.php/Template_Guide&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;The example at the very bottom of the page shows how to walk a document as an XML DOM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Feb 2006 15:48:48 GMT</pubDate>
    <dc:creator>kevinr</dc:creator>
    <dc:date>2006-02-14T15:48:48Z</dc:date>
    <item>
      <title>XPath query in xml content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/xpath-query-in-xml-content/m-p/38170#M20221</link>
      <description>Hi,is it possible to use xpath query in xml documents, which are stored in Alfresco as single text contents?For example, if I have several 'testDocument'-nodes in repository, which contain xml documents as content. Content could be eg&amp;lt;aaa&amp;gt;&amp;nbsp; &amp;lt;bbb attr1="foo"/&amp;gt;&amp;lt;/aaa&amp;gt;‍‍‍Now I would li</description>
      <pubDate>Tue, 14 Feb 2006 13:01:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/xpath-query-in-xml-content/m-p/38170#M20221</guid>
      <dc:creator>ananius</dc:creator>
      <dc:date>2006-02-14T13:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: XPath query in xml content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/xpath-query-in-xml-content/m-p/38171#M20222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No that is not currently possible directly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, using the templating language API built into Alfresco, it is possible to locate documents (either by XPath, name or Lucene search) and then walk the DOM of a document as XML nodes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Take a look at this document for info on those features:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.alfresco.org/mediawiki/index.php/Template_Guide" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/mediawiki/index.php/Template_Guide&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;The example at the very bottom of the page shows how to walk a document as an XML DOM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2006 15:48:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/xpath-query-in-xml-content/m-p/38171#M20222</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2006-02-14T15:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: XPath query in xml content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/xpath-query-in-xml-content/m-p/38172#M20223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Kevin &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I wonder if in ther Alfresco 1.3 or in the next 1.4 there are this feature?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It will be very useful use xpath query in xml documents.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In any case what do yuo think is the best solution to achieve this goal?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2006 14:32:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/xpath-query-in-xml-content/m-p/38172#M20223</guid>
      <dc:creator>manuelgentile</dc:creator>
      <dc:date>2006-08-09T14:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: XPath query in xml content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/xpath-query-in-xml-content/m-p/38173#M20224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does this mean (and is this still correct in 1.4) that I can not use XPath to search for attributes in a single XML document? No fancy stuff here, I only want to use XPath IN an XML tree (read from some document in Alfresco) to find the attribute I'm looking for. Can this be done from a Freemarker template? I have the xmlNodeModel in a variable and would like to use XPath on this variable…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2006 13:51:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/xpath-query-in-xml-content/m-p/38173#M20224</guid>
      <dc:creator>simon</dc:creator>
      <dc:date>2006-11-10T13:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: XPath query in xml content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/xpath-query-in-xml-content/m-p/38174#M20225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Does this mean (and is this still correct in 1.4) that I can not use XPath to search for attributes in a single XML document? No fancy stuff here, I only want to use XPath IN an XML tree (read from some document in Alfresco) to find the attribute I'm looking for. Can this be done from a Freemarker template? I have the xmlNodeModel in a variable and would like to use XPath on this variable…&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes you can use the FreeMarker API to do this. The original poster was talking about being able to use xpath like statements to search within XML documents from the simple/advanced search in the web-client - a very different issue!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2006 13:55:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/xpath-query-in-xml-content/m-p/38174#M20225</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2006-11-10T13:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: XPath query in xml content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/xpath-query-in-xml-content/m-p/38175#M20226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Kevin… one more question though: how? Tried some things out but couldn't get it to work. Is there some documentation for this? I found some JavaScript references but would like to do this with Freemarker, any idea how to trigger this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2006 15:16:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/xpath-query-in-xml-content/m-p/38175#M20226</guid>
      <dc:creator>simon</dc:creator>
      <dc:date>2006-11-10T15:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: XPath query in xml content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/xpath-query-in-xml-content/m-p/38176#M20227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My mistake, you can't use XPath in FreeMarker, you have to walk the DOM or use the 'visit' and 'recurse' directives instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 10:49:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/xpath-query-in-xml-content/m-p/38176#M20227</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2006-11-13T10:49:16Z</dc:date>
    </item>
  </channel>
</rss>

