Declare entities in xml schema

This should cover W3C XML Schema, Relax NG and DTD related problems.
Posts: 2

Declare entities in xml schema

Fri Feb 26, 2010 1:48 am

In DTD, I can easily create entities which are displayed in the entities view. However, is it possible to declare entities using xsd? Or How can I declare using DTD and embed it in my schema file (xsd).
I've tried "Enable DTD/XML Schema in doucment type detection", and added the following in my schema file:

Code: Select all

<!DOCTYPE root
  <!ENTITY eacute "é&#xE9;">

Site Admin
Posts: 2100

Re: Declare entities in xml schema

Fri Feb 26, 2010 11:46 am

No, neither XML Schema nor other schema languages provide a replacement for DTD entities. However, you should be able to use entities in addition to other schema languages. You need to declare the entities in the document you want to use them.
In oXygen please make sure that you have not disabled the Options->Preferences -- XML -- XML Parser -- "Ignore the DTD for validation if a schema is also specified" option if you want to use the DTD only for entity resolution.

Best Regards,
George Cristian Bina

Return to “XML Schemas”

Who is online

Users browsing this forum: No registered users and 1 guest