creating xmldocumenttype

B

billsahiker

Anyone know of some sample xml files on the net that include every
option of DOCTYPE?

I cannot find much. Lots of documentation, but cannot find examples so
I can see the exact syntax. So, I have tried to write one in notepad,
but IE gives me errors. For example, what is wrong with the
following?:

<!DOCTYPE book PUBLIC "http://www.yahoo.com" [<!ENTITY h
'hardcover'>]><book genre='novel' ISBN='1-861001-57-5'><title>Pride
And Prejudice</title><misc/></book>

IE6 gives me this error:
A string literal was expected, but no opening quote character was
found.

I tried both single and double quotes around the public url. If I take
out the public url, ie displays the xml OK.

I wrote a parsing routine in c# and I need some test xml files with
every nodetype and interface thereof.

please help

Bill
 
G

Guest

That helps some. now what I need are some valid public and system IDs,

Have you bothered looking at the XML Recommendation? Section 4.2.2
explains the use of public and system IDs, gives the productions which
specify the legal character ranges and forms, and points out that the
system ID is expected to be "a URI which may be used to retrieve the
entity" whereas the public ID is interpreted by the processor in
whatever manner that processor wants to interpret it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,175
Messages
2,570,942
Members
47,476
Latest member
blackwatermelon

Latest Threads

Top