Timeline with XML. IS there a way to get to the data element

Hi All

My events source currently looks like this:

<data> <event id="124"> <start_date>2014-07-02 07:00</start_date> <end_date>2014-07-02 23:00</end_date> <section_id>15</section_id>

I’d like to add a date and time attribute to the data node and get it’s value:
e.g.

<data update_time="2014-05-30 14:00"> <event id="124"> <start_date>2014-07-02 07:00</start_date> <end_date>2014-07-02 23:00</end_date> <section_id>15</section_id>

Is there a way to get access to the data node? I could do it by transforming the XML with XSL and extracting the attribute I need, but it seems a bit overkill.

TIA

Mark

Hi,
there is a way to get XML attribute using “elementNode.getAttribute(name)” method:
w3schools.com/dom/met_elemen … ribute.asp

Thanks. will give it a try