Title: Check error in scan DTD

I have defined a DTD like this:

<!ELEMENT Root (P)>
<!ELEMENT P (#PCDATA)>
<!ELEMENT P (test)>

Of course there are something wrong in the declaration. First, element *P* was defined twice. Second, element *test* was not defined.

I want to use xerces to check the error. I had checked the example EnumVal, but I still have no idea of how to complete my aim.

Any one can give me any help? Which example should I follow? Which API should I use? or etc.

Any hint will be appreciated.

Super


Reply via email to