cparse类解析xml遇到奇怪问题
<?xml version="1.0" encoding="utf-8" ?><root><code>LOGIN_SUCCESSFUL</code><channel><item><id>57</id><title>sample</title><hwid>18:20:10:00:00:16</hwid><uri>rtsp://192.168.1.2:8212/H264</uri><sms>0</sms></item><item><id>165</id><title>摄像头0012</title><hwid>18:20:10:02:00:12</hwid><uri>rtsp://192.168.1.2:8322/H264</uri><sms>0</sms></item><item><id>223</id><title>摄像头026C</title><hwid>18:20:10:02:02:6C</hwid><uri>rtsp://192.168.1.2:8322/H264</uri><sms>0</sms></item><item><id>225</id><title>摄像头006F</title><hwid>18:20:10:02:00:6F</hwid><uri>rtsp://58.210.32.35:8208/H264</uri><sms>0</sms></item><item><id>254</id><title>摄像头222B</title><hwid>18:20:10:02:22:2B</hwid><uri>rtsp://58.210.32.35:8858/H264</uri><sms>0</sms></item><item><id>297</id><title>摄像头009A</title><hwid>18:20:10:02:00:9A</hwid><uri>rtsp://58.210.32.36:8552/H264</uri><sms>0</sms></item><item><id>315</id><title>公司门口</title><hwid>18:20:10:02:01:24</hwid><uri>rtsp://192.168.1.2:8568/H264</uri><sms>0</sms></item><item><id>426</id><title>东面走廊</title><hwid>18:20:10:02:01:12</hwid><uri>rtsp://58.210.32.35:8586/H264</uri><sms>0</sms></item></channel><mobile><number>11122298765</number><notes>q</notes><setbind>0</setbind></mobile></root>
}
else if (aElement.LocalName().DesC() == _L8("setbind") || aElement.LocalName().DesC() == _L8("sms"))
{
iState = 5;
}
else if (aElement.LocalName().DesC() == _L8("hwid"))
{
iState = 6;
}
}[/code]
[解决办法]
那你就搜搜KFileBufferSize ,哪里用到了,就知道问题出在哪里了。