tags:

views:

62

answers:

2

Is it possible to generate XML based on condition. I am getting the XML output from Database, but i want to display the nodes in such a manner based on the ID.

If id of the elements are same, they should come under one node.

A: 

you can handle an xml in many ways and yes you can group the xml items per db id.

imho your question needs more details: how do you get the xml? how do you query the database?

dam
A: 

Have you checked out PHP's SimpleXML? It enables you to perform XPath queries on XML data

Josh