473,511 Members | 14,990 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

11 New Member
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?
Sep 20 '10 #1
8 15538
drhowarddrfine
7,435 Recognized Expert Expert
Put all that in lower case.
Sep 20 '10 #2
autumnrrr
11 New Member
I tried that but the error is still coming up.
Sep 20 '10 #3
drhowarddrfine
7,435 Recognized Expert Expert
Need the complete markup then.
Sep 20 '10 #4
autumnrrr
11 New Member
Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  3.    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6.    <title>Resume</title>
  7.    <style type="text/css">
  8.  
  9. hr {color:black;}
  10. body {background-color:#B3BCC6;color:black;}
  11. h1 {text-align:center;font-family: Lucida, sans-serif;}
  12. h1 {border:2px solid;outline:black thick;}
  13. p.email {text-align:right;}
  14. p {font-family: Lucida, sans-serif;}
  15. #para1, #para2, #para3, #para4
  16. {text-;color:black;font-weight: 700;font-size: 14pt;font-family: Lucida, sans-serif;}
  17. #para5 {font-family: Lucida, sans-serif;}
  18. ul {font-family: Lucida, sans-serif;}
  19. li {font-family: Lucida, sans-serif;}
  20. dd {font-family: Lucida, sans-serif;}
  21. ul.a {list-style-type: none;} 
  22. #para6 {position:absolute;right:30px;top:25px;}
  23. #para7 {position:absolute;right:30px;top:450px;}
  24. #para8 {position:absolute;right:30px;top:535px;}
  25. #para9 {position:absolute;right:30px;top:630px;}
  26. #para10 {position:absolute;right:30px;top:1110px;}
  27.  
  28. </style>
  29. </head> 
  30. <body>
  31. <div id="header"/>
  32.  
  33. <ul class="a">
  34.   <li><a href="home.html">Home</a></li>
  35.   <li><a href="education.html">Education</a></li>
  36. </ul>
  37.  
  38. <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/> 
  39.  
  40. <h1 align="center">Autumn Rothwell</h1>
  41. <br/><br/>
  42.  
  43. <hr size="3" noshade="noshade"/>
  44. <p id="para1" align="left">Objective:</p>
  45. <hr size="3" noshade="noshade"/>
  46.  
  47. <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>
  48. <br/><br/>
  49.  
  50. <hr size="3" noshade="noshade"/>
  51. <p id="para2" align="left">Work Experience:</p>
  52. <hr size="3" noshade="noshade"/>
  53.  
  54. <p><b>BE Pressure, &nbsp;Abbotsford B.C.</b></p>
  55. <p id="para7"><b>Present</b></p>
  56.  
  57.  
  58.  
  59. <dl>
  60.   <dd>- Shipper</dd>
  61.   <dd>- Forklift operator</dd>
  62. </dl>
  63.  
  64. <p><b>City Wide, &nbsp;Abbotsford B.C. &nbsp;</b></p>
  65. <p id="para8"><b>2008 - 2009</b></p>
  66.  
  67. <dl>
  68.   <dd>- Forklift operator</dd>
  69.   <dd>- Pallet Builder</dd>
  70. </dl>
  71.  
  72. <p><b>A &amp; W, &nbsp;Hope B.C.</b></p>
  73. <p id="para9"><b>2003 - 2008</b></p>
  74.  
  75.  
  76. <dl>
  77.   <dd>- Manager</dd>
  78. </dl>
  79. <br/><br/>
  80.  
  81.  
  82. <hr size="3" noshade="noshade"/>
  83. <p id="para3" align="left">Interests:</p>
  84. <hr size="3" noshade="noshade"/>
  85.  
  86. <ul>
  87.   <li>Traveling</li>
  88.   <li>Documentaries</li>
  89.   <li>Soccer</li>
  90.   <li>Basket Ball</li>
  91. </ul>
  92. <br/><br/>
  93.  
  94. <hr size="3" noshade="noshade"/>
  95. <p id="para4" align="left">Additional Information:</p>
  96. <hr size="3" noshade="noshade"/>
  97.  
  98. <ul>
  99.   <li>Forklift Ticket</li>
  100.   <li>WHIMIS</li>
  101.   <li>Food Safe Certificate</li>
  102. </ul>
  103.  
  104. <p id="para10">™</p>
  105.  
  106. </body>
  107. </html>
Sep 21 '10 #5
drhowarddrfine
7,435 Recognized Expert Expert
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.
Sep 21 '10 #6
autumnrrr
11 New Member
http://www.w3.org/

and I get that error every time.
Sep 22 '10 #7
autumnrrr
11 New Member
Expand|Select|Wrap|Line Numbers
  1.   Start tag expected, '<' not found
  2.  
  3. <?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.
Sep 22 '10 #8
drhowarddrfine
7,435 Recognized Expert Expert
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?
Sep 22 '10 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

3
3291
by: Mike Kennedy | last post by:
I have an XML Snippet <?xml version="1.0" encoding="UTF-8"?> and when I convert the entire xml file to a DOM and then generate a new file from the DOM, results in <?xml version="1.0"?>. Any...
4
2392
by: peter | last post by:
When I transform a dataset to a xml file by applying a xslt file, why by default, a "encoding="utf-8" ?" is added to the output file?How to get rid of it? Thanks
4
46390
by: LP | last post by:
Hi, My webservice is currently deployed on WIndows 2000 server and runs pretty fine. I am trying to run my webservice on a Windows 2003 server. My webservice tries to write to a eventlog. The...
1
376
by: Daniel | last post by:
how to parse <?xml version="1.0" encoding="UTF-8"?> with xpath? is it possible?
1
3954
by: BillAtWork | last post by:
Hi, I'm trying to validate an XML document against an XSD schema and I receive the following error: ---------- MyCode.CreateValidRequest : System.Web.Services.Protocols.SoapException :...
6
6428
by: eric.goforth | last post by:
Hello, I'm calling a VB.NET 2003 dll that's registered in COM+. I've added a reference to it in a VB6 DLL that I'm calling from a Classic ASP page. Previously I was able to attach to my .NET...
2
17150
by: dazedandconfused | last post by:
Building a site for a client, loaded it up, it works fine in Firefox but presents the below message when loading into ie 6 or ie 5, fine in 7 I think, but the client can not even view it in 7. So...
3
18968
by: jariwaladivyesh | last post by:
Hi frnds, i have simple XML doc <?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="test.xsl"?> <data> <name> Divyesh Jariala</name> </data>
0
1417
by: vhrao | last post by:
I want to Encrypt and Decrypt different elements of xml file with different RSACryptoServiceProvider keys RSACryptoServiceProvider rsaKey = new RSACryptoServiceProvider(cspParams); string...
0
7349
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7506
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5659
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5063
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4734
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3219
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3210
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
445
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.