Monthly Archives: March 2014

XML Parsing with PHP DomDocument : Examples

Sample XML file for testing



Getting all Car names from all persons:

Getting all Car colors from all persons:

Joining Car names & Colors together for all persons:

 

Code Bit Begins Here!

{C}

 

 

{C++}

 

{C#}

 

 

{Java}

 

{PHP}

 

Cheers..:)