解析步骤
1 读取xml文件内容
以文件流的方式读取xml文件到char型数组中
char* ReadFiel(const char* fileName)
{
FILE* file = fopen(fileName,"rb");
if (file==0)
{
return 0;
}
fseek(file,0,SEEK_END);
size_t len = ftell(file);
fseek(file,0,SEEK_SET);
char* data = new char[len+1];
memset(data,0,len+1);