XML Navigation help

Hello everyone

I’ve been trying to get some attrubutes from an xml file, but cant seem to get the navigation right.

I need the path and extpath from this xml file.

<?xml version="1.0" ?>
    <clientBanner timer="6" fadetime="2" framerate="24" fadetype="2">
        <banner bsize="3" path="1.png" extpath="http://www.test.com" />

I’ve been trying "this.firstChild.firstChild.nextSibling.firstChild.childNodes[0].attributes.path; but dosent give me anything.

Anyone who can help`?

Thanks in advance.