Can anybody help me to create function that will accept for parameter xml string and return a formatted string as response that after can Example:
<cars>
<ford>
<model>fiesta</model>
<model>focus</model>
</ford>
<renault>
<model>twingo</model>
<model>clio</model>
</renault>
</cars>
should return
cars:
ford:
model=fiesta
model=focus
renault:
model=twingo
model=clio