How to write rootless list in xml

strangepolkadot

New Member
I want to write an xml file using the following format:\[code\]<root> <date> 9:51 AM 10/10/2012 </date> <responseTime> 1.20</responseTime> <employee> <name> Mohammad</name> </employee> <employee> <name> Ali</name> </employee> <employee> <name> Mostafa</name> </employee> <employee> <name> Mahmoud</name> </employee></root>\[/code\]Can I wrote it using DOM? or should I write it by hand?(The problem in that the employee node is a sequence without a direct parent node to warp all employee elements without \[code\]date\[/code\] and \[code\]responseTime\[/code\] elements)
 
Back
Top