Question

In: Computer Science

What is the syntax of a typical DOCTYPE declaration you would find in an XML document...

What is the syntax of a typical DOCTYPE declaration you would find in an XML document if its DTD is located in the same directory as the XML document itself?

Solutions

Expert Solution

Question- What is the syntax of a typical DOCTYPE declaration you would find in an XML document if its DTD is in the same directory as the XML document itself?

Ans- If DTD is located in the same directory as the XML document itself than we will use an External DTD Declaration. If the DTD is declared in an external file, the <!DOCTYPE> definition must contain a reference to the DTD file.

The DTD above is interpreted like this:

  • !DOCTYPE note defines that the root element of this document is note
  • !ELEMENT note defines that the note element must contain four elements: "to,from,heading,body"
  • !ELEMENT to defines the to element to be of type "#PCDATA"
  • !ELEMENT from defines the from element to be of type "#PCDATA"
  • !ELEMENT heading defines the heading element to be of type "#PCDATA"
  • !ELEMENT body defines the body element to be of type "#PCDATA"


Related Solutions

What is the well formatted XML document
What is the well formatted XML document
What are two ways in which namespaces can be represented within an XML document?
What are two ways in which namespaces can be represented within an XML document? How is the scope of a particular XML element within a document determined based on these two namespace types?
What would you document if you had a telephone conversation with a patient?
What would you document if you had a telephone conversation with a patient?
What is the overall strategy of a document management company? What would you say are the...
What is the overall strategy of a document management company? What would you say are the greatest threats to it's ability to maintain its strategic focus?
What would you document on a patient's chart if they were getting a collection of a...
What would you document on a patient's chart if they were getting a collection of a throat swab for a rapid strep throat culture.  
8.) Name the locations where you would typical find the following tissue types: stratified squamous epithelium,...
8.) Name the locations where you would typical find the following tissue types: stratified squamous epithelium, pseudostratified ciliated columnar epithelium, transitional epithelium 9.) Describe the organizational chart.
What would happen if you outran the expansion of the universe. What would you find. Please...
What would happen if you outran the expansion of the universe. What would you find. Please give thorough explanation?
SQL Question: What syntax to find the following? Out of the 10 employees, how many do...
SQL Question: What syntax to find the following? Out of the 10 employees, how many do we have a record of handling at least one order? You can do this by pulling the distinct employee ids from the Order table What syntax would you use to pull a list of all Shipper IDs and Names along with the count of all orders they’ve shipped? Make sure rename count(orders) to OrdersShipped. To do this you’ll need to join Orders and Shippers...
If you peruse the bookshelves of a typical college professor, you will find a variety of...
If you peruse the bookshelves of a typical college professor, you will find a variety of books ranging from textbooks to esoteric technical publications to paperback novels. In order to determine whether or not the price of a book can be determined by the number of pages it contains, a college professor recorded the number of pages and price for 15 books on one shelf. The data are shown below. Pages Price Pages Price Pages Price 104* 32.95 342* 49.95...
How would you picture the pattern of economic activity for the typical capitalist econom and what...
How would you picture the pattern of economic activity for the typical capitalist econom and what is the pattern called? (5 points). What is discretionary macroeconomic stabilization policy? Why is it important? Explain. (5 points).
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT