Simple validation question.
Posted: Sat Nov 03, 2018 3:44 am
Hi I'm new to this forum and know this is probably really simple, but I cant work out how to make this code a valid XML document.
Any help would be greatly appreciated.
<?xml version=”1.0” encoding=”UTF-8”?>
<!DOCTYPE eMail [
<!ELEMENT eMail (to+, from+, topic?, message*)>
<!ELEMENT to (#PCDATA)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT topic (#PCDATA)>
<!ELEMENT message (#PCDATA)>
<!ATTLIST message urgency (high|low) #REQUIRED”> ]>
<!—
XML code will go here (comment tags will be removed)
-->
Write the shortest possible fragment of XML code that would make the code in the box above into a valid XML document.
Any help would be greatly appreciated.
<?xml version=”1.0” encoding=”UTF-8”?>
<!DOCTYPE eMail [
<!ELEMENT eMail (to+, from+, topic?, message*)>
<!ELEMENT to (#PCDATA)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT topic (#PCDATA)>
<!ELEMENT message (#PCDATA)>
<!ATTLIST message urgency (high|low) #REQUIRED”> ]>
<!—
XML code will go here (comment tags will be removed)
-->
Write the shortest possible fragment of XML code that would make the code in the box above into a valid XML document.