> Zhang Tao wrote: > > Hello: > > I want to know whether I can use xerces-c parse a wml file. When I > try the sample program saxcount , and pass a wml file as its > parameter, I got an assertion failure.In detail, > File:dbgdel.cpp > Line:47 > Expression:_BLOCK_TYPE_IS_VALID(pHead->nBlockUse) > > I note some xml parsers (like expat ) can parse the file according > to "Doctype" in an xml file, can xerces-c do it?
Not sure what the exact problem is, but WML files are valid XML so should load fine. We've had some problems due to lack of a net accessor in Xerces-C, so have had to strip off the DOCTYPE declaration before loading. I've definitely loaded WML using Xerces. Best regards, Mike. -- Mike Mason, Software Engineer XML Script Development Team Office: 44-1865-203192 http://www.xmlscript.org/ Mobile: 44-7050-288923