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

How do you add an attribute to an element

Status
Not open for further replies.

Segull

Programmer
Feb 24, 2005
2
US
Hi there,
Let's say we have a DTD simmilar to the following format
<!DOCTYPE BOOK [
<!ELEMENT BOOK (TITLE,(CHAPTER)+)>
<!ELEMENT CHAPTER (TITLE,AUTHOR))>
<!ELEMENT TITLE %TEXT >

<!ENTITY TEXT (#CDATA)>
]>
Now if we wanted to add an attribute for example <ISBN> (which is a REQUIRED attribute) to the <TITLE> element only under the <BOOK> element without changing the other elements.. could anyone suggest me a method of doing this

ps: you cannot just change the element name "TITLE" of the book
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top