best option is to use the networkstream

specify a common port that you will use

and have your app listen on that port

the remote app connects and sends a network stream over to your app

your app would then recieve that stream and dump it into the xmldocument object