copy from http://xmlsoft.org/, build with visual studio on windows