Re: validate XML against DTD using SAX2XMLReader

2006-05-18 Thread Frank Zhou
Hi All, Would like to confirm what I found: I just did some debugging of the Xerces library about this, and noticed that it seems loadGrammar(...) will never work in validating XML against a given DTD if using SAX2XMLreader. The reason is this, when SAX2XMLReader calls parser->parse(inputXML

Re: XML validation against DTD using loadGrammar

2006-05-18 Thread Frank Zhou
I meant to send to c-users list. sorry about that. Frank --- Frank Zhou <[EMAIL PROTECTED]> wrote: > Hi All, > > I asked this question in c-dev list, but not getting > satisfying answers, so I post it here: > > I am using Xerces-c 2.7. I am having a problem > validating XML against a given D

XML validation against DTD using loadGrammar

2006-05-18 Thread Frank Zhou
Hi All, I asked this question in c-dev list, but not getting satisfying answers, so I post it here: I am using Xerces-c 2.7. I am having a problem validating XML against a given DTD (a string). I am using SAX2XMLReader and using loadGrammar(...) to load the DTD. My code is something like this:

[jira] Commented: (XERCESC-1471) problems and solution with building in mingw-msys enviromen

2006-05-18 Thread Greg Franks (JIRA)
[ http://issues.apache.org/jira/browse/XERCESC-1471?page=comments#action_12412388 ] Greg Franks commented on XERCESC-1471: -- Xerces 2.7 fails to build with mingw too. I applied the patch here and it now works fine. > problems and solution with buildi

Re: validate XML against DTD using SAX2XMLReader

2006-05-18 Thread Frank Zhou
David, I tried that. By setting XMLUni::fgXercesDynamic to false, the parse will report an error on the root element of the xml instance (the root element is a valid one), and setting it to true, it will report no error even if there is one. What is the method loagGrammar(...) used for? Is it su

[jira] Resolved: (XERCESC-1567) Schema error

2006-05-18 Thread Alberto Massari (JIRA)
[ http://issues.apache.org/jira/browse/XERCESC-1567?page=all ] Alberto Massari resolved XERCESC-1567: -- Resolution: Duplicate Duplicate of XERCESC-1512 > Schema error > > > Key: XERCESC-1567 > URL: http://issues.a