XML how to target child
<?xml version="1.0" encoding="UTF-8"?> <tt xml:lang="en" xmlns="http://www.w3.org/2006/04/ttaf1" xmlns:tts="http://www.w3.org/2006/04/ttaf1#styling"> <head> <styling> <!-- Add styles here --> </styling> </head> <body> <div xml:lang="en"> <p begin="00:00:00.00">Caption 1</p> <p begin="00:00:15.00">Caption 1</p> </div> <div xml:lang="de"> <p begin="00:00:00.00">Caption 1</p> <p begin="00:00:15.00">Caption 1</p> </div> </body> </tt>
I think this is a simple question, but can't quite figure it out. How would i read the <div> that is english "en"?
something like this - tho this does not work:
trace(_xml.div.(@lang=="en"));