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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DTD validation problem 1

Status
Not open for further replies.

Nosh

Programmer
Jul 12, 2001
34
GB
Hi Folks,

I have the following line in a DTD:

<!ELEMENT RIL_LINE_ITEM_CODE (#PCDATA, ERROR_MESSAGE*, WARNING_MESSAGE*>

I am using XMLSpy and it will not validate that line. It says that a % is expected.

Can anyone help?

Cheers
Nosh.
 
Although it is possible to use mixed syntax, as shown also in
XMLSpy does not allow it.
So you will have to name all three elements, for example:
<!ELEMENT RIL_LINE_ITEM_CODE (ANYEL,ERROR_MESSAGE*,WARNING_MESSAGE*)>
<!ELEMENT ANYEL ANY>
<!ELEMENT ERROR_MESSAGE (#PCDATA)>
<!ELEMENT WARNING_MESSAGE (#PCDATA)>

HTH.
D.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top