cancel
Showing results for 
Search instead for 
Did you mean: 

[Javascript] Parser input file XML

roberten
Champ in-the-making
Champ in-the-making
hello,

how i can parser an file XML in javascript

thx
4 REPLIES 4

roberten
Champ in-the-making
Champ in-the-making
Somebody help me?????

zaizi
Champ in-the-making
Champ in-the-making
Well it isn't easy. But you can use thrid party libraries. Yahoo UI Library has some very useful tools: http://developer.yahoo.com/yui/datasource/

tommorris
Champ in-the-making
Champ in-the-making
Do you mean using javascript on the web-browser client, or on the server?

tommorris
Champ in-the-making
Champ in-the-making
Sarissa is a pretty good library for parsing XML on the client  (http://dev.abiss.gr/sarissa/).

Alfresco can parse XML in javascript on the server using E4X (see http://forums.alfresco.com/en/viewtopic.php?f=36&t=12067).
If the version of alfresco you're using doesn't support E4X by default, then it's easy to add (https://issues.alfresco.com/browse/AR-1720).

Tom