×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    7

    Problems with XML declaration

    The Nokia simulator accept my script, but when I try to view it in Internet Explorer it won't work. I get an error report on the first question-mark in: <?xml version="1.0"?> - why is that? In the toolkit this questionmark is blue, while the last one is black??

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Location
    Tampere, Finland
    Posts
    67

    RE: Problems with XML declaration

    Hey,

    Can you be more specific? Do you get any error message when you try to validate the code with NMIT? Which version of IE you are using? How are you loading the files into IE (locally, from server)? Have you configured your server (if you have any) to support XHTML MIME type?

    Your declaration looks fine and the question mark colors are indeed different in the Toolkit.

    Try following code (test.xhtml):

    <?xml version="1.0"?>
    <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
    "http://www.wapforum.org/DTD/xhtml-mobile10.dtd" >

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>test</title>
    </head>
    <body>
    <p>
    Hello world!
    </p>
    </body>
    </html>

    Best Regards,
    Mika / Forum Nokia Developer Support

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    7

    RE: Problems with XML declaration

    Thanks Mika!

    The unicode tip didn't work, but Opera did show a working result. Maybe it's just my IE thats the problem?

    Anyway - Thank you very much for the help!

    Mikkel

  4. #4
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    202

    RE: Problems with XML declaration

    Regarding the warnings generated by Toolkit editor about the DTD, they do not pertain to anything in your XHTML code but to some redefinitions in the DTD definition - generated by the parser used by the editor. So you can safely ignore these, since you are using a standard DTD. If you are annoyed by these warnings, you could turn them off by the Options->ShowWarnings setting in the editor window.

    Vishu Vaidyanathan
    Toolkit team

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •