EscapeXML C++ Visual Studio
<p>I want to convert the special character for EscapeXML on Visual Studio C++.</p>

<pre><code>#include "stdafx.h"
#include "atlenc.h";
#include &lt;string&gt;
#include &lt;iostream&gt;
using namespace std;


int main()
{
    std::string test = "&amp; &amp; &amp;";

    inline int EscapeXML(const wchar_t * test)throw();

    cout &lt;&lt; test;
    return 0;
}
</code></pre>

<p>I want to have an output.</p>

<pre><code>&amp;amp; &amp;amp; &amp;amp;
</code></pre>

<p>Visual Studio has EscapeXML function, but it doesn't convert.
<a href="https://msdn.microsoft.com/en-us/library/y0y57exc(v=vs.71).aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/y0y57exc(v=vs.71).aspx</a></p>