473,807 Members | 2,886 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 15620
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
3322
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 thoughts? My sample code snippet is: DocumentBuilder builder = factory.newDocumentBuilder(); Document doc = builder.parse(in.xml); FileWriter file = new FileWriter(out.xml);
4
2415
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
46486
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 code is as follows: System.Diagnostics.EventLog Log = new System.Diagnostics.EventLog( EventLogName ); Log.Source = EventLogName; Log.WriteEntry( "PCHistory Service Application started up successfully.",
1
376
by: Daniel | last post by:
how to parse <?xml version="1.0" encoding="UTF-8"?> with xpath? is it possible?
1
3975
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 : Validation error: The element 'http://xmlns.somewhere.com/something:rDetail' cannot contain text. Expected 'http://xmlns.somewhere.com/something:AList'. An error occurred at , (1, 533). ----------
6
6441
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 dll and debug it. I haven't been able to do this in a while and I'm thinking that it must be because I've installed VS 2005 on my machine subsequently. So in my C:\Program Files\Microsoft Visual Studio\VB98 directory I added a file called...
2
17177
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 what is going on? The XML page cannot be displayed Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
3
18985
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
1455
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 publicKey = rsaKey.ToXmlString(false); RSACryptoServiceProvider rsaKey2 = new RSACryptoServiceProvider(cspParams2); string publicKey2 = rsaKey2.ToXmlString(false); Here is my data file I want to encrypt: <?xml version="1.0" encoding="utf-8" ?> <root>...
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10628
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10374
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10113
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7651
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5547
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5685
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3859
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.