Hi,
I am developing an app for iPhone 3g which is something like avaya's One-x app, but instead am using Asterisk PBX where my app will send request/response to a middle wear server which will connect my app to Asterisk.Now am getting some response from the server over TCP like this:

<response><rid>1</rid><PeerList></PeerList><status></status>

now to the clarification i need to say this is not valid XML data(something customized), which i need to parse in client side & validate the same. Now am being stuck up here, how to parse these data whether adding XML header & the n parse it using NSXMLParser or is there any other better way is there as receiving the data in bytes & converting again into string type. Please give me some suggestions to fix it. Thanks in advance.