First time for me to use tinyxml,some error occurs,this is my code:
#define TIXML_USE_STL
#include <string>
#include <sstream>
#include <strstream>
#include <iostream>
using namespace std;
//Local headers:
#include "tinyxml.h"
int main(void)
{
TiXmlDocument doc;
doc .LoadFile("Document.xml");
return 0;
}
My compile-environment is Windows2K+MS.net 2003.and I've added all the files about tinyxml to my project.
No error occured in compile-process.but an assert error will appear when run it.
it looks like:
Debug Assertion Failed!
Program:\....\XMLTest.exe.
File:isctype.c
Expression:(unsigned)(c+1) <= 256.
And this is my xml file to be tested:
<?xml version="1.0" standalone="yes" ?>
<!-- This is comment test! -->
<ToDo>
<Item priority="1"> Go to the <bold>Toy store!</bold></Item>
<Item priority="2"> Do bills</Item>
</ToDo>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
First time for me to use tinyxml,some error occurs,this is my code:
#define TIXML_USE_STL
#include <string>
#include <sstream>
#include <strstream>
#include <iostream>
using namespace std;
//Local headers:
#include "tinyxml.h"
int main(void)
{
TiXmlDocument doc;
doc .LoadFile("Document.xml");
return 0;
}
My compile-environment is Windows2K+MS.net 2003.and I've added all the files about tinyxml to my project.
No error occured in compile-process.but an assert error will appear when run it.
it looks like:
Debug Assertion Failed!
Program:\....\XMLTest.exe.
File:isctype.c
Expression:(unsigned)(c+1) <= 256.
And this is my xml file to be tested:
<?xml version="1.0" standalone="yes" ?>
<!-- This is comment test! -->
<ToDo>
<Item priority="1"> Go to the <bold>Toy store!</bold></Item>
<Item priority="2"> Do bills</Item>
</ToDo>
That's odd. When you look at the stack trace, where is the stack in the TinyXml code?
lee