HTML - Validation Code - Xml Parsing Error
Hello,
I have coded my site, and I have a form on the page, and I'm not sure why I am getting the errors I am getting. If anyone can help me out I would be forever grateful! Here is my code: http://pastie.org/366071 And if you paste it into: http://validator.w3.org/#validate_by_input then you will see what errors I have encountered. Similar TutorialsHello, I am having a problem with this xml document parsing. Code: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!-- ScanMaster and DigiCam FAQ --> <?xml-stylesheet type="text/css" href="assets/FAQ.css" ?> <FAQ> <Title>Jackson Electronics Products</Title> <SubTitle>Frequently Asked Questions</SubTitle> <product>The ScanMaster</product> <question>How do I scan slides?</question> <answer> <! [CDATA["You can scan slides using the JE Transparency Adapter (part number STA8901) available from Jackson Electronics."]]> </answer> <question>Where can I find the latest drivers for my ScanMaster?</question> <answer> <! [CDATA["You can download the latest software drivers from the Jackson Electronics Web page."]]> </answer> <question>What is the largest sheet that I can scan?</question> <answer> <! [CDATA["8.5 x 14 in (216 x 356 mm)."]]> </answer> <question>How do I fax with my ScanMaster?</question> <answer> <! [CDATA["You can turn your scanner into a fax machine by purchasing the FaxRight add-on component (part number STA4500) available from Jackson Electronics."]]> </answer> <product>DigiCam</product> <question>What is the difference between optimal and digital zoom?</question> <answer> <! [CDATA["With optical zoom the Digicam's lense phyiscal moves inside the camera; with digital zoom, the camera's 'electronic brain' zooms the image. If you zoom too much, your image will become pixelated."]]> </answer> <question>What sort of batteries should I use with the DigiCam?</question> <answer> <! [CDATA["Nickel Metal Hydride (NiMH) batteries work the best and having the longest lifetime. Nickel-Cadium batteries also work very well as do Alkaline batteries. Do not use Lithium batteries."]]> </answer> <question>What resolution should I use for 4x6 in. photos?</question> <answer> <! [CDATA["We recommend 640x480 for 4x6 images, 1024x768 for 5x7 in. photos, and 1600x1200 for 8x10 in photos."]]> </answer> <question>Can the DigiCam be harmed by airport X-ray machines?</question> <answer> <! [CDATA["No, there is no evidence that X-ray machines can affect the performance or quality of DigiCam photos."4]]> </answer> </FAQ> This is the error I get when trying to parse it in Internet Explorer. Quote: Jackson Electronics Products Frequently Asked Questions The ScanMaster How do I scan slides? The XML page cannot be displayed Cannot view XML input using CSS style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- Whitespace is not allowed at this location. Error processing resource 'file:///G:/Course Technology/XML/datadisks/Tutorial.... <! [CDATA["You can scan slides using the JE Transparency Adapter (part number STA8901) available from Jackson Electronics... This is the error I get in Firefox Quote: Jackson Electronics Products Frequently Asked Questions The ScanMaster How do I scan slides? The XML page cannot be displayed Cannot view XML input using CSS style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- Whitespace is not allowed at this location. Error processing resource 'file:///G:/Course Technology/XML/datadisks/Tutorial.... <! [CDATA["You can scan slides using the JE Transparency Adapter (part number STA8901) available from Jackson Electronics... I will do a little bit more reading to see if I can find the answer. Does anyone have a good XML tutorial site? Help please I have a form and am entering in some html code into it, but it's not posting. I guess it's a parsing error. In PHP I would addslashes or something like that, but i don't know what to do for a form... I'm sure this is really simple and i've got it wrong. I have been trying different things and searching the web for hours now... Thank you, Jo Hi all, I have recently begun updating my website to XHTML and I have encountered the following error and I am not sure what I am doing incorrectly. Any advice would be very welcome. http://www.dynamic-xchange.com/DXServices.php http://validator.w3.org/check?uri=ht...doctype=Inline Best Regards, Simon I have a web page that I still have 4 validation errors on (all for the same problem in different lines). The error lines and the validation error for them is below. Any ideas as to how to correct this would be appreciated. Thanks. HTML Code: <p align="left" style="line-height: 100%; margin-left: 0; margin-right: 0; margin-top: 3; margin-bottom: 3"><span style="mso-fareast-font-family: Times New Roman; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"><b><font face="Times New Roman" size="5"> Page Title</font></b></span></p> <p align="left" style="line-height: 100%; margin-left: 0; margin-right: 0; margin-top: 3; margin-bottom: 3"><font face="Times New Roman" size="4" color="#000080"><i> </i></font></p> <p align="left" style="line-height: 100%; margin-left: 0; margin-right: 0; margin-top: 3; margin-bottom: 3"> </p> <p align="left" style="line-height: 100%; margin-left: 0; margin-right: 0; margin-top: 3; margin-bottom: 3"><i><font face="Times New Roman" size="4" color="#000080"> </font> Validation error: Below are the results of checking this document for XML well-formedness and validity. Error Line 44 column 111: document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag. ...: 0; margin-top: 3; margin-bottom: 3"><span style="mso-fareast-font-family: T The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). My html is attached, I was wondering what I can do to fix what is wrong with my website! I can't see anything, but I do know that two of the buttons don't work, most likely because of the website not being validated. Any help is appreciated! BTW, just remove the .txt for it to become an html doc. to validate it just try this: http://validator.w3.org/ I don't know what the errors mean: HTML Code: No Character Encoding Found! Falling back to UTF-8. None of the standards sources gave any information on the character encoding labeling for this document. Without encoding information it is impossible to reliably validate the document. As a fallback solution, the "UTF-8" encoding was used to read the content and attempt to perform the validation, but this is likely to fail for all non-trivial documents. Read the FAQ entry on character encoding for more details and pointers on how to fix this problem with your document. Unable to Determine Parse Mode! The validator can process documents either as XML (for document types such as XHTML, SVG, etc.) or SGML (for HTML 4.01 and prior versions). For this document, the information available was not sufficient to determine the parsing mode unambiguously, because: the MIME Media Type (text/html) can be used for XML or SGML document types No known Document Type could be detected No XML declaration (e.g <?xml version="1.0"?>) could be found at the beginning of the document. No XML namespace (e.g <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">) could be found at the root of the document. As a default, the validator is falling back to SGML mode. No Character encoding declared at document level No character encoding information was found within the document, either in an HTML meta element or an XML declaration. It is often recommended to declare the character encoding in the document itself, especially if there is a chance that the document will be read from or saved to disk, CD, etc. See this tutorial on character encoding for techniques and explanations. Validation Output: 1 Error Line 1, Column 1: end of document in prolog ✉ This error may appear when the validator receives an empty document. Please make sure that the document you are uploading is not empty, and report any discrepancy. Hello, I have produced a form which can be seen at this url: http://www.magicalwonders.com/Freestufftest5.html but the code is failing to valididate and is producing two errors: Quote: Line 33, Column 29: "INPUT" is not a member of a group specified for any attribute. <select name="country" input type='text' size='1'> Line 33, Column 34: there is no attribute "TYPE". <select name="country" input type='text' size='1'> As I need to include "Input" and "Type" in order for the form to work I'm not sure how to produce a form that validates! Can anyone point me in the right direction? Many thanks, Myles Hi created the following code: Code: <!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>validation</title> </head> <body> <ul> <li><a href="#">item1</a></li> <li><a href="#">item2</a></li> <ul> <li><a href="#">item2a</a></li> <li><a href="#">item2b</a></li> </ul> </ul> </body> </html> unfortunately it doesn't pass validation. Apparently, a "ul" elenent cannot be inserted into another "ul". So, how do i create a cascading menu? Thanks Hi, Why isn't the following code calling the validateForm function? I am new to this so I am lost. And please excuse the messyness of the code as it is a work in progress. N.B. I have obviously taken out a lot of code but I think this is all I need to show you for you to be able to help <script language="JavaScript" type="text/JavaScript"> function validateForm(pform) { checkFirstNames(pform.firstNamesField.value); checkLastName(pform.lastNamesField.value); checkCurrentEmp(pform.currentEmpField.value); checkEmailAddress(this.emailAddressField.value); checkJobTitle(pform.jobTitleField.value); checkDegrees(pform.degreeField.value); checkApplication(pform.applicationField.value); checkAddLanguage(pform.addLanguageField.value); checkWebPage(pform.webPageField.value); } </script> <title> Job Application </title> </head> <body background="images/Border1.png" bgcolor="#ffffff"> <table width="500" cellspacing="2" border="0" id=menuTable> <tr><td> <table width="320" cellspacing="2" cellpadding="2" align="left" border="0"> <tr><td colspan=2><h3>Menu</h3></td></tr> <tr><td><a href="default.html" >Homepage</a></td></tr> <tr><td><a href="Application_Submit.htm" onclick="alert('Apply for a Job button clicked. Reloading page')"/>Apply for a Job</a></td></tr> <tr><td><a href="back.html" onclick="alert('Job Submission button clicked but is unoperative at this time')"/>List all Job submissions</a></td></tr> <tr><td><a href="back.html" onclick="alert('Lastest Submission button clicked but is unoperative at this time')"/>Show latest submission</a></td></tr> <tr><td><a href="help.html">Help</a></td></tr> </table> <table width="380" cellspacing="2" cellpadding="2" align="right" border="0"> <tr><td><form name="JobApplication" action="javascript:alert('Submit button clicked')" onsubmit="return validateForm(this.emailAddressField.value)"> Web Page http://www.classic-corvettes-ky.com/Contact.htm does not send eMail as intended. Does anyone know how I can resolve this? If you go to https://www.bkriegtech.net/?page=login You'll see the infamous unsecure connection error in IE. I have no idea where this is coming from since every image on the page loads as https. Any ideas? I edited a html file using notepad++ but it won't run anymore. From what I found, maybe the file was originally created in FP, which I don't have. Anyway, I get a http://www.**********.com/_derived/nortbots.htm error on submit. The only thing I had changed was the email address that the form was submitted to. Can anyone point me in the right direction on how to fix this? Code: <html> <head> <title>Rentals</title> <meta name="description" content="******.com" /> <meta http-equiv="Content-type" content="text/html; charset=UTF-8" /> <script src="/resource/js/main.js" type="text/javascript"></script> <link href="/resource/css/main.css" type="text/css" rel="stylesheet" media="all" /> </head> <body onload="initJS();"> <div id="wrapper"> <table id="mainTable" cellspacing="0" cellpadding="0"> <tr id="banner"> <td style="font-family:Arial,sans-serif; color:white; text-align:right; vertical-align:middle; padding:5px 30px 0 0;" colspan="3"> <p style="padding:0; margin:0;"> <!--webbot bot="Include" U-Include="resource/include/quicksearch.html" tag="body" startspan--> <form method=get action="/cgi-bin/listman/exec/search.cgi"> <input type="hidden" name="search" value="1"> <input type="hidden" name="perpage" value="10"> <input type="hidden" name="marknew" value="1"> <input type="hidden" name="euro_numbers" value="0"> <input type="hidden" name="sort_order" value="3,abc,forward" /> CITY <select name="lfield3_match" size="1"> <option value="" selected>Any</option> <option>Affton</option> <option>Arnold</option> <option>Ballwin</option> <option>Barnhardt</option> <option>Bella Villa</option> <option>Winchester</option> <option>Woodson Terrace</option> </select> ZIP <input type="text" size="10" name="lfield5_match" /> <input type="submit" value="Quick Search" /> </form> <!--webbot bot="Include" i-checksum="56169" endspan --></p> </td> </tr> <tr id="menu"> <td style="vertical-align:top;" colspan="3"> <map name="FPMap0"> <area alt="Home Page" coords="9, 3, 120, 29" shape="rect" href="/index.html"> <area alt="Burt's Property Search Page" coords="127, 0, 331, 29" shape="rect" href="/cgi-bin/listman/exec/search.cgi"> <area alt="Rentals Page" coords="337, 2, 459, 29" shape="rect" href="/rentals.html"> <area alt="Contact Us Page" coords="470, 1, 624, 29" shape="rect" href="/contactus.html"> <area alt="About Us Page" coords="633, 2, 795, 29" shape="rect" href="aboutus.html"> <area alt="Burt's Ads Page" coords="806, 1, 959, 29" shape="rect" href="Burtsads.html"> </map> <img border="0" src="resource/image/menu2.jpg" width="974" height="30" usemap="#FPMap0"> </td> </tr> <tr> <td style="width:30px; height:100%; background:#3300cc url('/resource/image/shadowleft.jpg') repeat-y top left; vertical-align:top; text-align:right"> <div style="height:100%; background:url('/resource/image/bgbottomleftcol.jpg') no-repeat bottom left;"> </div> </td> <td style="width:941px; vertical-align:top;"> <div id="content" style="height:100px; border:1px solid black; overflow:auto; padding:15px; background-color:white;"> <div style="border:1px solid black; background-color:lightgrey;"> <h2 style="padding:5px; margin:0;">Rentals</h2> </div> <p>For those of you not looking to purchase real estate, Burt can now offer you a wide range of rental properties to choose from in the area. If you would like to know what properties we have for rent, please fill out the information below and I will respond to your inquiry. For all rental properties, the following applies:</p> <ul> <li>Security Deposit is required that is equal to 1-month rent. </li> <li>Pet Deposit $250.00 which $100.00 is non-refundable and a pet rent of $10.00 is charged.</li> </ul> <form method="POST" name="rentals" action="_derived/nortbots.htm" webbot-action="--WEBBOT-SELF--" onSubmit="location.href='_derived/nortbots.htm';return false;" webbot-onSubmit=""> <!--webbot bot="SaveResults" U-File="_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE" S-Email-Format="TEXT/PRE" S-Email-Address="myemailaddress@aol.com" B-Email-Label-Fields="TRUE" B-Email-Subject-From-Field="FALSE" S-Email-Subject="Info From *****.com Rentals Page" S-Builtin-Fields U-Confirmation-Url="rentals2.html" startspan --><input NAME="VTI-GROUP" TYPE="hidden" VALUE="0"><!--webbot bot="SaveResults" i-checksum="37496" endspan --> <table border="0" width="91%" id="table1"> <tr> <td>First Name<br> <input type="text" name="First" size="20" style="border: 1px solid #0000FF"> </td> <td width="200">Last Name<br> <input type="text" name="Last" size="25" style="border: 1px solid #0000FF"> </td> <td width="375">Email Address<br> <input type="text" name="Email" size="40" style="border: 1px solid #0000FF"></td> </tr> <tr> <td> </td> <td width="200"> </td> <td width="375"> </td> </tr> <tr> <td>Phone<br> <input type="text" name="Phone" size="20" style="border: 1px solid #0000FF"></td> <td width="200">Best Time to Call<br> <input type="text" name="Timetocall" size="20" style="border: 1px solid #0000FF"></td> <td width="375">Price Range You Are Looking For<br> <input type="text" name="Price" size="20" style="border: 1px solid #0000FF"></td> </tr> </table> <p align="center"><b>Location of property you are looking for. Please enter a zip code, multiple zip codes, or community name into the box below. </b></p> <p align="center"> <textarea rows="3" name="S1" cols="60" style="border: 1px solid #0000FF"></textarea><!-- Start of StatCounter Code --> <script type="text/javascript" language="javascript"> var sc_project=929101; var sc_invisible=1; var sc_partition=7; var sc_security="22ede977"; </script> <script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/frames.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img src="http://c8.statcounter.com/counter.php?sc_project=929101&java=0&security=22ede977&invisible=1" alt="free stats" border="0"></a> </noscript> <!-- End of StatCounter Code --></p> <p align="center"> <input type="submit" value="Submit" name="B1" style="border: 1px solid #0000FF"> <input type="reset" value="Reset" name="B2" style="border: 1px solid #0000FF"></p> </form> <p> </div> </td> <td style="width:30px; height:100%; background:#3300cc url('/resource/image/shadowright.jpg') repeat-y top right; vertical-align:top"> <div style="height:100%; background:url('/resource/image/bgbottomrightcol.jpg') no-repeat bottom right;"> </div> </td> </tr> </table> </div> </body> </html> Hey i recently opened a blogged and wanted to begin customizing it with shoutboxs , games, etc Blog is runned by Mac OSx , it allows u to post html as well, but 98% of the html codes i put in there doesnt work...the ones that do work , well they seem to have <table> inserted in them...and strangly one of my posting options is to insert a table, so when i click on that *insert table* i paste my html code(shoutbox) and click insert (for table) and all the codes seem to work fine and shoutbox looks great, until i cllick the <>(htmlm mod) everything seems to go back to where it was before i started testing with table (which is that it doesnt work), this is only if switch from normal to html and back after i insert html codes through table...but if i just paste the Html codes for the shoutbox into *HTML* section, it shows up as the link that i use to gernate these codes...this happens with every one of my html codes including the ones that do work for the blog and dont work for the blog....So im stuck with HTML codes that only show up when the *insert table dialog box pops up and i insert html from there to blog.(which cancels html codes in the end)..From the table with the successful HTML, if i click Save,HTML mode, or Preview, it just makes the codes void..I think that when iclick any of those commands, the blog messes with codes Does anyone know any great codes to bypass w/e the blog is doing to my codes or simulating the table forever with the codes? TY Friend said that blog has ScriptTags, and by using table i can bypass that...Unfortunatly ive tried inserting <table> and </table> around it...nothing works.. heres an example of one of the few that does work for the blog(had table tags when i copied it from generator): <div class="wiki_entry"> <div> <div> <div><br /></div> <table><tbody> <tr> <td><a href="http://www.website-hit-counters.com"><img src="http://www.website-hit-counters.com/cgi-bin/image.pl?URL=109386-8813" alt="www.website-hit-counters.com" /></a></td> </tr> <tr> <td><a href="http://www.website-hit-counters.com/search-engine-optimization.html" title="search engine optimization firm">This many People saw this</a></td> </tr></tbody> </table></div><br /></div></div> HEre is one that doesnt(after i placed tables around it myself) <div class="wiki_entry"> <div> <div> <div><br /></div> <table><tbody> <tr> <!-- Begin ShoutMix - http://www.shoutmix.com --> <iframe title="jimbaler" src="http://www.shoutmix.com/?jimbaler" width="100" height="130" frameborder="0" scrolling="auto"> <a href="http://www.shoutmix.com/?jimbaler">View shoutbox</a> </iframe> <br /><a href="http://www.shoutmix.com" title="Get your own free shoutbox chat widget at ShoutMix!">ShoutMix chat widget</a><br /> <!-- End ShoutMix --> </tr> </tbody> </table></div><br /></div></div> Hello, I hired contractors to build a site for me. The site's front page has a small section for text, the developers added some placeholder text in this spot. Now that the site is completed, I changed the text as follows: I downloaded the index.php file from my webhost. I changed it to a txt file, then opened in notepad, found the placeholder text, changed it, saved the file, renamed the file back to php, then uploaded to webhost, replacing old index.php file. When I load the page the following error message appears twice at the top of the window: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/XXXX/public_html/index.php:1) in /home/XXXX/public_html/index.php on line 2 Does anyone know what this error indicates ? (I'm not a programmer) I did not save the old index.php file because I didn't think such a minor change would cause problems. The contract with my developer has ended and I don't want to start a new one for this. Any help appreciated. I would like to add parsed rss feed to my website (www.ghilliesuitsource.com) I will be the first to admit I am a complete stranger to PHP JAVA PERL etc. I believe my web server supports PHP at least, so I will learn what I have to. I was wondering if there is a good resource for adding parsed RSS feed to an existing html site. The site I want to bring feed from (if it helps) is http://outdoorrssfeeds.com/taxonomy/term/113/9 I am flailing about in open water, so if anyone could point me in the right direction I would certainly appreciate it. How can I display a php script on a web page (html - static) without it being parsed? Thanks. |