The only flaw I can make out is that the namespace prefix declaration
should be in caps because everything in XML is case sensitive.

<HTML:A xmlns:HTML="http://www.w3c.org/TR/REC-html40/"; HREF="http://
www.amazon.com/exec/obidos/ASIN/014011341X/thenazieuthan-20">The
Second World War</HTML:A>

On Jan 26, 10:21 am, Historian <[email protected]> wrote:
> Hi all,
>
> I'm new here and I hope someone will take a couple of minutes to help
> me out. I'm trying to learn XML on my own and am building a web page
> using XML to try to learn it. I've tried to insert an HTML link onto
> my XML page and the browser reports I've got a parsing error and a
> prefix is not bound to a namespace. At least that's one error, I may
> have more, I'm not sure.
>
> What I'm trying to do is build a list of books for a web site and make
> the title of each book be an HTML link. I thought I had the code
> correct, but obviously not. Here's what I've done:
>
> <BOOK>
> <HTML:A xmlns:html='http://www.w3c.org/TR/REC-html40/'
> HREF='http://www.amazon.com/exec/obidos/ASIN/014011341X/
> thenazieuthan-20'> The Second World War</HTML:A>
> <AUTHOR>John Keegan</AUTHOR>
> <DESCRIPTION>This book is a pretty good one volume history of the war.
> However it's obvious Mr. Keegan's preference for writing and most of
> his knowledge lies in the European Theatre of the war. Also, as a
> purely military historian, he does not include any information on the
> Holocaust and very scant information on the Nazis ideological reasons
> for the war at all.</DESCRIPTION>
> </BOOK>
>
> What have I done wrong? I'd really appreciate any help someone can
> give me. Right now XML is a bit overwhelming and I thought some "hands
> on" experience in building a page would be the best way to learn it
> since I usually do learn best that way.
>
> Thanks!

Reply via email to