It might be easier to convert the xml results to JSON within your PHP. If you load in the xml to an array you can quickly export JSON with json_encode(). Then as omnicity suggested you can use AJAX to ask the php script for results in JSON ready for use.
Thank you guys for the fast reply, but i think you misunderstand me
I'd like to use a java script insteed of php. If i use java the client can handle it and i dont need to use a webserver to run the php script.
Yes, i found several article, and i tryed to create a working code, but as i mentioned before i can't use java.
I was hoping that maybe someone can atleast grab an example from any article and convert it to my project.
If smbody would do that i could extend the script to my claim.