cancel
Showing results for 
Search instead for 
Did you mean: 

javascript api and xml

qali
Champ in-the-making
Champ in-the-making
Hi,
Is there anyway via the js api to easily parse xml? I know you can get the contents of a file by doing document.content and it's easy to get the mimetype (via the API), so, is there a simple way to load an xml document (so that I can parse it and extract data and do whatever) via teh JS API?
2 REPLIES 2

kbonnet
Champ in-the-making
Champ in-the-making
I think i am looking for the same thing in the topic i just started. Did you find a way already?

http://forums.alfresco.com/viewtopic.php?p=37507#37507

Koen

pmonks
Star Contributor
Star Contributor
What you're looking for is E4X (http://en.wikipedia.org/wiki/E4X), which has been enabled in Alfresco by default since v2.9.  It's also possible to enable E4X in earlier versions of Alfresco by following the instructions in JIRA ticket AR-1720 (http://issues.alfresco.com/browse/AR-1720).

Cheers,
Peter