<?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: XML DOM Javascript in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/xml-dom-javascript/m-p/159941#M113962</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Aug 2008 15:20:58 GMT</pubDate>
    <dc:creator>koolalfdev</dc:creator>
    <dc:date>2008-08-06T15:20:58Z</dc:date>
    <item>
      <title>XML DOM Javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/xml-dom-javascript/m-p/159937#M113958</link>
      <description>Hi All,I am trying to access a avm node which is a xml document and I want to get the contents of the xml in JavaScript like I can do with document.xmlNodeModel in .ftl files. I was wondering if I can do it in javascript as well. I looked at contents in the avm node it did not show the xmlNodeModel</description>
      <pubDate>Wed, 06 Aug 2008 00:36:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/xml-dom-javascript/m-p/159937#M113958</guid>
      <dc:creator>koolalfdev</dc:creator>
      <dc:date>2008-08-06T00:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: XML DOM Javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/xml-dom-javascript/m-p/159938#M113959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you can grab the content of the node then yes, you can process it as XML in JavaScript; Rhino 1.6 and later has built-in support for E4X. For example, you can do something like this in your JavaScript:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var xml = new XML('&amp;lt;your XML string&amp;gt;');&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Here's a link to a basic tutorial if you are not familiar with E4X: &lt;/SPAN&gt;&lt;A href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Guide:Processing_XML_with_E4X" rel="nofollow noopener noreferrer"&gt;http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Guide&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rocessing_XML_with_E4X&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 08:30:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/xml-dom-javascript/m-p/159938#M113959</guid>
      <dc:creator>sbuckle</dc:creator>
      <dc:date>2008-08-06T08:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: XML DOM Javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/xml-dom-javascript/m-p/159939#M113960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the response but in the xml to get xml in javascript &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt; this line posses an error. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Right now I am manipulating the string with javascript code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;how to get rid of this line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 14:44:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/xml-dom-javascript/m-p/159939#M113960</guid>
      <dc:creator>koolalfdev</dc:creator>
      <dc:date>2008-08-06T14:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: XML DOM Javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/xml-dom-javascript/m-p/159940#M113961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The simplest way is to use substring:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var xmlstr = '&amp;lt;your xml string&amp;gt;';&lt;BR /&gt;var header = '&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;';&lt;BR /&gt;xmlstr = xmlstr.substring(header.length);&lt;BR /&gt;var xml = new XML(xmlstr);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 15:17:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/xml-dom-javascript/m-p/159940#M113961</guid>
      <dc:creator>sbuckle</dc:creator>
      <dc:date>2008-08-06T15:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: XML DOM Javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/xml-dom-javascript/m-p/159941#M113962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 15:20:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/xml-dom-javascript/m-p/159941#M113962</guid>
      <dc:creator>koolalfdev</dc:creator>
      <dc:date>2008-08-06T15:20:58Z</dc:date>
    </item>
  </channel>
</rss>

