When I use the below code and parse the xml locally it works fine but when upload the same script at the server it shows error.
Note: I retrieved the $lng
$lng
I think you are creating a document that looks like this:
.... ....
This is not a valid XML document as it has more than one root element. You must have a single top-level element, as in
.... .... ....