Invalid PI name <?XML version="1.0" encoding="UTF-8"?>

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • autumnrrr
    New Member
    • Sep 2010
    • 11

    Invalid PI name <?XML version="1.0" encoding="UTF-8"?>

    This is coming up

    Invalid PI name <?XML version="1.0" encoding="UTF-8"?>


    XML declaration allowed only at the start of the document

    <?xml version="1.0" encoding="UTF-8"?>


    <?xml version="1.0" encoding="UTF-8"?> is at the start of my dcument. Can someone help?
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    Put all that in lower case.

    Comment

    • autumnrrr
      New Member
      • Sep 2010
      • 11

      #3
      I tried that but the error is still coming up.

      Comment

      • drhowarddrfine
        Recognized Expert Expert
        • Sep 2006
        • 7434

        #4
        Need the complete markup then.

        Comment

        • autumnrrr
          New Member
          • Sep 2010
          • 11

          #5
          Code:
          <?xml version="1.0" encoding="utf-8"?>
          <!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">
          <head>
             <title>Resume</title>
             <style type="text/css">
           
          hr {color:black;}
          body {background-color:#B3BCC6;color:black;}
          h1 {text-align:center;font-family: Lucida, sans-serif;}
          h1 {border:2px solid;outline:black thick;}
          p.email {text-align:right;}
          p {font-family: Lucida, sans-serif;}
          #para1, #para2, #para3, #para4
          {text-;color:black;font-weight: 700;font-size: 14pt;font-family: Lucida, sans-serif;}
          #para5 {font-family: Lucida, sans-serif;}
          ul {font-family: Lucida, sans-serif;}
          li {font-family: Lucida, sans-serif;}
          dd {font-family: Lucida, sans-serif;}
          ul.a {list-style-type: none;} 
          #para6 {position:absolute;right:30px;top:25px;}
          #para7 {position:absolute;right:30px;top:450px;}
          #para8 {position:absolute;right:30px;top:535px;}
          #para9 {position:absolute;right:30px;top:630px;}
          #para10 {position:absolute;right:30px;top:1110px;}
          
          </style>
          </head> 
          <body>
          <div id="header"/>
          
          <ul class="a">
            <li><a href="home.html">Home</a></li>
            <li><a href="education.html">Education</a></li>
          </ul>
          
          <p  id="para6" style="font-weight:500"><b>550 Glenaire Drive, Hope, British Columbia, V0X 1L4, <a href="mailto:autumnrrr@yahoo.com" >Email</a></b></p><br/> 
          
          <h1 align="center">Autumn Rothwell</h1>
          <br/><br/>
          
          <hr size="3" noshade="noshade"/>
          <p id="para1" align="left">Objective:</p>
          <hr size="3" noshade="noshade"/>
          
          <p id="para5" align="left">To secure a challenging and resposible position, where I can further my skills, gain additional knowledge and earn the funds to pay my way through university.</p>
          <br/><br/>
          
          <hr size="3" noshade="noshade"/>
          <p id="para2" align="left">Work Experience:</p>
          <hr size="3" noshade="noshade"/>
          
          <p><b>BE Pressure, &nbsp;Abbotsford B.C.</b></p>
          <p id="para7"><b>Present</b></p>
          
          
          
          <dl>
            <dd>- Shipper</dd>
            <dd>- Forklift operator</dd>
          </dl>
          
          <p><b>City Wide, &nbsp;Abbotsford B.C. &nbsp;</b></p>
          <p id="para8"><b>2008 - 2009</b></p>
          
          <dl>
            <dd>- Forklift operator</dd>
            <dd>- Pallet Builder</dd>
          </dl>
          
          <p><b>A &amp; W, &nbsp;Hope B.C.</b></p>
          <p id="para9"><b>2003 - 2008</b></p>
          
          
          <dl>
            <dd>- Manager</dd>
          </dl>
          <br/><br/>
          
          
          <hr size="3" noshade="noshade"/>
          <p id="para3" align="left">Interests:</p>
          <hr size="3" noshade="noshade"/>
          
          <ul>
            <li>Traveling</li>
            <li>Documentaries</li>
            <li>Soccer</li>
            <li>Basket Ball</li>
          </ul>
          <br/><br/>
          
          <hr size="3" noshade="noshade"/>
          <p id="para4" align="left">Additional Information:</p>
          <hr size="3" noshade="noshade"/>
          
          <ul>
            <li>Forklift Ticket</li>
            <li>WHIMIS</li>
            <li>Food Safe Certificate</li>
          </ul>
          
          <p id="para10">™</p>
          
          </body>
          </html>
          Last edited by Dormilich; Sep 25 '10, 01:04 AM. Reason: please use [code] [/code] tags when posting code

          Comment

          • drhowarddrfine
            Recognized Expert Expert
            • Sep 2006
            • 7434

            #6
            What are you using to validate this and to get this error? You aren't doing anything wrong and the W3C validator does not flag any errors.

            Comment

            • autumnrrr
              New Member
              • Sep 2010
              • 11

              #7
              w3

              The World Wide Web Consortium (W3C) develops standards and guidelines to help everyone build a web based on the principles of accessibility, internationalization, privacy and security.


              and I get that error every time.

              Comment

              • autumnrrr
                New Member
                • Sep 2010
                • 11

                #8
                Start tag expected, not found

                Code:
                  Start tag expected, '<' not found
                
                <?xml version="1.0" encoding="UTF-8"?>
                It says no < start tag but shows my code and it had a start tag, there for sure IS a start tag in my code so I dont understand.

                Comment

                • drhowarddrfine
                  Recognized Expert Expert
                  • Sep 2006
                  • 7434

                  #9
                  I copy/pasted it into the validator and don't get the error at all. I'm thinking you are getting the utf BOM (Byte-Order-Mark) from your editor. What editor are you using? Check its settings to see if you are saving it as utf-8 or not. Is there anything about the BOM in the settings? If you view the xml in a browser, do you see any funny characters in the top left corner?

                  Comment

                  Working...