<?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 adding metadata from an XML file to an aspect field in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/adding-metadata-from-an-xml-file-to-an-aspect-field/m-p/100739#M69823</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an XML file which has tag data which I want to extract and use as a value for an aspect field. I'm familiar with Javascript and I have a rule which calls a server side .js file but when I try to use getElementsByTagname() it produces an error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to run Actions due to error: Failed to execute script 'workspace://SpacesStore/d2ca222d-00c2-11dc-abd3-d3625ca9de94': TypeError: Cannot find function getElementsByTagName. (AlfrescoScript#45)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My script looks like this: -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var videoGroup = document.content.getElementsByTagName("group");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;document.properties["custom:VideoGroup"]&amp;nbsp; = videoGroup;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;document.save();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 May 2007 18:53:07 GMT</pubDate>
    <dc:creator>maninmadrid</dc:creator>
    <dc:date>2007-05-12T18:53:07Z</dc:date>
    <item>
      <title>adding metadata from an XML file to an aspect field</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-metadata-from-an-xml-file-to-an-aspect-field/m-p/100739#M69823</link>
      <description>I have an XML file which has tag data which I want to extract and use as a value for an aspect field. I'm familiar with Javascript and I have a rule which calls a server side .js file but when I try to use getElementsByTagname() it produces an error.Failed to run Actions due to error: Failed to exec</description>
      <pubDate>Sat, 12 May 2007 18:53:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-metadata-from-an-xml-file-to-an-aspect-field/m-p/100739#M69823</guid>
      <dc:creator>maninmadrid</dc:creator>
      <dc:date>2007-05-12T18:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: adding metadata from an XML file to an aspect field</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-metadata-from-an-xml-file-to-an-aspect-field/m-p/100740#M69824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The Alfresco server-side JavaScript only supports pure &lt;/SPAN&gt;&lt;A href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference" rel="nofollow noopener noreferrer"&gt;ECMAScript&lt;/A&gt;&lt;SPAN&gt; i.e. not web-browser based javascript objects such as 'window' or 'alert' etc. The method you mention is part of the extended JavaScript API provided by web-browsers. You can only use pure javascript plus the &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/JavaScript_API" rel="nofollow noopener noreferrer"&gt;Alfresco JavaScript API&lt;/A&gt;&lt;SPAN&gt;.&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, 14 May 2007 09:25:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-metadata-from-an-xml-file-to-an-aspect-field/m-p/100740#M69824</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-05-14T09:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: adding metadata from an XML file to an aspect field</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-metadata-from-an-xml-file-to-an-aspect-field/m-p/100741#M69825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Kevin for the update.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 00:20:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-metadata-from-an-xml-file-to-an-aspect-field/m-p/100741#M69825</guid>
      <dc:creator>maninmadrid</dc:creator>
      <dc:date>2007-05-17T00:20:31Z</dc:date>
    </item>
  </channel>
</rss>

