July 15, 2020, 06:54:13 AM
Welcome, Guest. Please login or register
News: Join us for a FREE Webinar this Thursday at http://webinar.digitalsignage.com

MediaSignage support forum



Author Topic: ECMAScript for XML E4X  (Read 1999 times)

doohit

  • Newbie
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
ECMAScript for XML E4X
« on: October 23, 2014, 07:55:15 AM »
Hello,

You have developped an XML component, which is very useful but for which your Chat Support cannot help. So I am opening a topic with the hope someone will be able to help me.

I am using E4X Expressions in order to parse the XML files. For example, I use the following expression :

Froms.(@From=="BOD").Tos.Promo

This expression searches for the elements for which From=BOD

In my XML file, From can take a lot of values (BOD, TLS, LIG,..etc).

What I would like to do is to find the expression to search for the elements for which From=BOD or From=TLS or From=LIG

I've worked on this problem for days, looked over the Internet for a solution, found out there where some operators which could do this, but not been able to work out the right expression...!

So my first question is : Can anyone in the Admin or Dev team help us on this ?

On top of this, I've found out that E4X standard has been abandonned in 2012...
So my second question is : I am wondering why MediaSignage has chosen an outdated technology for one of its major components ?

Thanks for your answers

Eric

admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 5068
  • Karma: +35/-8
    • View Profile
Re: ECMAScript for XML E4X
« Reply #1 on: October 23, 2014, 04:31:07 PM »
we do have plans to support JSON but I do not have ETA on it just yet...

doohit

  • Newbie
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: ECMAScript for XML E4X
« Reply #2 on: October 26, 2014, 10:06:10 AM »
OK...

Any idea concerning my issue..?

Thanks

admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 5068
  • Karma: +35/-8
    • View Profile
Re: ECMAScript for XML E4X
« Reply #3 on: October 27, 2014, 09:46:52 AM »
our implementation does not support the full E4X range and since we are moving to json I recommend you change the XML source (via PHP let's say) so you can grab unique values as per the video tutorial example...

 

Carbonate design by Bloc
variant: carbon
SMF 2.0.12 | SMF © 2016, Simple Machines