I have just started learning xml parsing.
My xml file looks like -
<company>
    <employee>
        <name>Employee <emphasis emph='em01'>John <emphasis emph='em01'>is great</emphasis></emphasis>.</name>
        <age>25</age>
        <dept>Computer</dept>
    </employee>
    <employee>
        <name>Jessica</name>
        <age>25</age>
        <dept>Human Resource</dept>
    </employee>
</company>
I want to display this in browser.
I'm able to write code for basic parsing but this tag inside tag seems complicated. Please help.
I want the output as - 
Employee John is great.
25
Computer
Jessica
25
Human Resource
My basic php code looks like this.
Request help. Thanks.
 
    