Jump to content

Need Help


rajivjoshi
 Share

Recommended Posts

Hi I'm new to XML..I need some clarification. i just took a small part of code from W3.. <?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE note SYSTEM "c:/Rajiv/Note.dtd"><note><to>Tove</to><from>Jani</from><heading>Reminder</heading><body>Don't forget me this weekend!</body></note> And saved in C:/rajiv/note1.xml <!DOCTYPE note[<!ELEMENT note (to,from,heading,body)><!ELEMENT to (#PCDATA)><!ELEMENT from (#PCDATA)><!ELEMENT heading (#PCDATA)><!ELEMENT body (#PCDATA)>]>and even saved the DTD file as Note.dtd in same folder C:/rajiv/note.dtd when i open the xml file it is showing as error as below.. The XML page cannot be displayedCannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.Cannot have multiple DOCTYPE declarations. Error processing resource 'file:///c:/Rajiv/note.dtd'. Line 1, Position 11<!DOCTYPE note----------^ Can and one help me..

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...