xmlns namespace being mangled

  •  12-28-2004, 11:52 AM

    xmlns namespace being mangled

    I get the following results when I load a test .xml or .html document with the following text:
    <?xml version="1.0" encoding="iso-8859-1" ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html  xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"
     xmlns:webtop="c:\webtop.dtd">
     <head>
      <title>My Title</title>
     </head>
     <body>
      <webtop:webtopdocument>[Enter text here]
       <br />
      </webtop:webtopdocument>
     </body>
    </html>
     
    If I open the above document as an xml or html document it parses just fine.
    After the document is loaded in CuteEditor for .NET, HTML preview mode shows:
    <webtop:webtopdocument webtop="http://unknownprefix/webtop" xmlns:webtop="http://unknownprefix/webtop">[Enter text here]
    <br/></webtop:webtopdocument>
    Several problems:
    • Why has my xmlns been ignored and replacements made with 'unknownprefix'?
    • Why can't I see the rest of my text?  In HTML mode I want to be able to see everything in the document -- not just the user text.
View Complete Thread