[xsd-users] Never failing in Parsing

ss ak ssak22 at gmail.com
Wed Aug 26 20:16:33 EDT 2009


I have enum values {in,out}

but what ever values given,parser never gives an exception...
please look at the code and tell me what is wrong...I am here only after
scanning all the examples...
 It need of the hour of my work...please

xml_schema::namespace_infomap map;

map[""].schema = "test.xsd";

std::ostringstream oss;

nt_(oss, var_nt, map);  //here nt is my class generated

std::string xml (oss.str ());

printf("\n XML %s",xml.c_str()); //here it prints the xml valid or not

try{

xml_schema::properties props;

props.no_namespace_schema_location("test.xsd");

 nt_(std::cout,var_nt,map,"UTF-8",xml_schema::flags::dont_initialize);

}

catch (const xml_schema::exception& e)

{

printf("\n test.xml: write error %s",e.what());

}



More information about the xsd-users mailing list