Trying to validate XML with an external DTD file.

Hello everyone. I am trying to validate some xml with the lxml python library, and a file containing DTD. I am getting the following error: default.xml:4:0:ERROR:VALID:DTD_UNKNOWN_ELEM: No declaration for element contests. My xml file is here: http://pastie.org/2832639 and my DTD file is here: http://pastie.org/2832658 are there any obvious issues in my XML or DTD that would cause lxml to generate this error? -- -Matthew

Sorry everyone, problem solved. I was not passing the correct thing to etree.DTD() it would seem. On Tue, Nov 8, 2011 at 2:15 PM, Matt Young <mabufo@gmail.com> wrote:
Hello everyone.
I am trying to validate some xml with the lxml python library, and a file containing DTD. I am getting the following error: default.xml:4:0:ERROR:VALID:DTD_UNKNOWN_ELEM: No declaration for element contests.
My xml file is here: http://pastie.org/2832639 and my DTD file is here: http://pastie.org/2832658
are there any obvious issues in my XML or DTD that would cause lxml to generate this error?
-- -Matthew
-- -Matthew
participants (1)
-
Matt Young