[Home] [By Thread] [By Date] [Recent Entries]

  • To: xml-dev <xml-dev@l...>
  • Subject: Alternative for inline DTD in schema!
  • From: Prasad G S K <prasadg@a...>
  • Date: Thu, 24 Apr 2003 12:22:14 +0530

Following example shows inline DTD for an XML document.
Using XML schema, can similar document be generated?

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Ack [
        <!ELEMENT Ack EMPTY>
        <!ATTLIST Ack Status CDATA #REQUIRED
			    ServerName CDATA #REQUIRED>
]>
<Ack ServerName="prasad" Status="Received"/>

Thanks,
Prasad GSK

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member