AnsweredAssumed Answered

XML parsing issue !!

Question asked by power on Nov 10, 2008
Latest reply on Nov 10, 2008 by power

I face some strange issue. My scheduler will call my javascript every 5min that will parse XMLs and categorize it.

Now I face problem parsing below XML

<?xml version="1.0" encoding="UTF-8"?>
<media_type>Net Package Broadband</media_type>
<title>Manager 1 Man United 1</title>
<abstract>Manager 1 Manager Utd 1</abstract>
<match_name>Manager v Manager Utd</match_name>
<away_team_name>Manager United</away_team_name>
<copyright>Colcutta Premier League</copyright>
<releaseTime format="GMT">2008-10-27T00:00:00</releaseTime>
<expireTime format="GMT">2008-11-03T00:00:00</expireTime>
<filesize unit="bytes">0</filesize>
<duration unit="seconds">119.60</duration>
<videoCodec>Jpeg Keyframes</videoCodec>
<width unit="pixels">720</width>
<height unit="pixels">576</height>
<videoFrameRate unit="frames/second"/>
<videoRate unit="kbits"/>
<audioRate unit="kbits"/>

I validated above xml that is purly true. No error is there.
but when my alfresco tries to parsing it it gives following errors:

Cannot parse XML: The processing instruction target matching "[xX][mM][lL]" is not allowed. (AlfrescoScript#27)

and that line is following in my javascript.

var l_match_metadata_E4X = new XML(l_match_metadata_str);

Here it is validated and my console says errors..  what could be the issue?
I am here confusing regarding problem.

Thanks anybody have clue..