Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xerces2_6_2 validating using dtd and schema. please help

Status
Not open for further replies.

mmartinh

Programmer
Feb 22, 2005
2
0
0
GB
Hi I am having trouble validating an xml document using xerces2_6_2

I have a DTD that containes only entity references, and a schema that is used to ensure the xml is valid.

I get this error.

Element type "my root tag" must be declared!

It seems to expect all validation grammer to be in the dtd. I have sucessfully validated with xml spy and oxygen,(oxygen uses xerces too).

This is a real pain I really would lie to take advantage of using schemas, I know I could just use entity references in this form   and not have a dtd but this is really not acceptable.

I have tried out all the xerces specific properties and features but this has not worked either.

Perhaps I should implement a validator? Does anyone have any ideas?

thanks
 
Can u please post your xml and DTD plz, then we can take a better look at it?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top