When trying to view an XML file in Internet Explorer, I get the following error: "Required white space was missing. Error processing resource 'file:///C:/My Documents/XMLWeek3.xml'. Line 10, Position 105"
Here's the code:
It's referring to this piece of code:Code:<?xml version="1.0"?> <!DOCTYPE library [ <!ELEMENT library (book+)> <!ELEMENT book (title,author,publisher)> <!ELEMENT title (#PCDATA)> <!ELEMENT author (#PCDATA)> <!ELEMENT publisher (#PCDATA)> <!ATTLIST book id CDATA #REQUIRED> <!ATTLIST book type (Mystery | History | Fiction | Children | Religion | Self_Help | Biography | Other)> ]> <library> <book id="A01" type="History"> <title>Battleground</title> <author>Griffin, WEB</author> <publisher>Berkley Publishing Group</publisher> </book> <book type="Mystery" id="B01> <title>4th of July</title> <author>Patterson, James</author> <publisher>Grand Central Publishing</publisher> </book> <book type="Fiction" id="C01"> <title>The Sun Also Rises</title> <author>Hemingway, Ernest</author> <publisher>Scribner</publisher> </book> <book type="Mystery" id="B02"> <title>Double Deuce</title> <author>Parker, Robert</author> <publisher>Berkley Publishing Group</publisher> </book> <book type="Religion" id="D01"> <title>Treasures of the Transformed Life</title> <author>Mathison, John Ed</author> <publisher>Abingdon Press</publisher> </book> <book type="History" id="A02"> <title>Baa Baa Black Sheep</title> <author>Boyington, Gregory</author> <publisher>Bantam Books</publisher> </book> <book type="Religion" id="D02"> <title>Growing Through Life's Challenges</title> <author>Reapsome, James and Martha</author> <publisher>Waterbrook Press</publisher> </book> </library>
I'm not seeing the error in that piece of code.Code:<!ATTLIST book type (Mystery | History | Fiction | Children | Religion | Self_Help | Biography | Other)>


Reply With Quote
Bookmarks