Error On Line
Contents |
XML declaration allowed only at error on line 1 the start of the do error on error message line 2 at column 6: XML declaration allowed only at the line error fax start of the do waqasSEO @waqasseo 6 months, 2 weeks ago I am using Yoast sitemap and line error fax machine i tried Google XML sitemap as well, but i am getting this error "This page contains the following errors: error on line 2 at column 6: XML declaration allowed only at the start of the document
Error Line Excel
Below is a rendering of the page up to the first error." http://emilpaz.com/sitemap_index.xml How to fix that. Viewing 1 replies (of 1 total) nortont @nortont 5 months, 3 weeks ago Try this https://wordpress.org/support/topic/sitemap-error-xml-declaration-allowed-only-at-the-start-of-the-document Viewing 1 replies (of 1 total) You must be logged in to reply to this topic. Topic Info In: Plugins and Hacks 1 reply 2 participants Last reply from: nortont Last activity: 5 months, 3 weeks ago 4.4.2 Status: not resolved Topic TagssitemapxmlYoast Forum Search Search for: About Blog Hosting Jobs Support Developers Get Involved Learn Showcase Plugins Themes Ideas WordCamp WordPress.TV BuddyPress bbPress WordPress.com Matt Privacy License / GPLv2 Code is Poetry.
XML declaration allowed only at start
Error Procedure
of document error on line 2 at column path error 6: XML declaration allowed only at start of document SegwayDirectory @segwaydirectory error line number in sql server 4 months, 3 weeks ago Sitemap is not generating http://www.goldengateparksegwaytours.com/sitemapindex.xml This page contains the following errors: error on line https://wordpress.org/support/topic/error-on-line-2-at-column-6-xml-declaration-allowed-only-at-the-start-of-the-do-3/ 2 at column 6: XML declaration allowed only at the start of the document Below is a rendering of the page up to the first error. https://wordpress.org/plugins/bwp-google-xml-sitemaps/ Viewing 1 replies (of 1 total) Plugin Author Khang Minh https://wordpress.org/support/topic/error-on-line-2-at-column-6-xml-declaration-allowed-only-at-start-of-document/ @oddoneout 4 months, 3 weeks ago Hello, can you try what's suggested here: https://wordpress.org/support/topic/blank-first-line-in-xml-file-throwing-error?replies=3 and let me know? Thanks. Viewing 1 replies (of 1 total) You must be logged in to reply to this topic. About this Plugin Better WordPress Google XML Sitemaps (support Sitemap Index, Multi-site and Google News) Support Threads Reviews Topic Info In: Plugins and Hacks 1 reply 2 participants Last reply from: Khang Minh Last activity: 4 months, 3 weeks ago 4.5.1 Status: not resolved Topic Tagserrorsitemapxml-declaration Forum Search Search for: About Blog Hosting Jobs Support Developers Get Involved Learn Showcase Plugins Themes Ideas WordCamp WordPress.TV BuddyPress bbPress WordPress.com Matt Privacy License / GPLv2 Code is Poetry.
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About http://stackoverflow.com/questions/16973923/xml-parse-error-error-on-line-1-at-column-769-encoding-error Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up XML Parse Error: error on line error on 1 at column 769: Encoding error up vote 0 down vote favorite This question is an extension of a prevous question started here.. XML Parse Error - Extra content at the end of the document i have added a snippet of code to list the names and phone numbers.. if(isset(${'Action'}) && ${'Action Type'}){ if(${'Action'} == 'get'){ if(${'Limit'} != ''){ $limit = ' LIMIT '.${'Limit'}.''; } else error on line { $limit = ''; } $i = 1; ${'Response'}['numbers'] = array(); ${'Query'} = mysql_query('SELECT * FROM `crm`.`accounts` WHERE `acquired_via` = "Scrubbed account" AND `sent_to_dialer` = "0"'.$limit); while(${'Row'} = mysql_fetch_assoc(${'Query'})){ ${'Response'}['numbers']['number_'.$i] = array('Company_Name' => ${'Row'}['company_name'], 'Contact_First_Name' => ${'Row'}['contact_fname'], 'Contact_Last_Name' => ${'Row'}['contact_lname'], 'Office_Phone' => removeCHARSphone(${'Row'}['office_phone']), 'Mobile_Phone' => removeCHARSphone(${'Row'}['mobile_phone'])); $i++; } }elseif(${'Action'} == 'details'){ } } This breaks the XML http://lmsapi.com/?api_key=b3e04e54f0d92f8845d394b61c607d60&act=get&format=xml http://lmsapi.com/?api_key=b3e04e54f0d92f8845d394b61c607d60&act=get&format=json But the JSON stays in tact... php xml json share|improve this question asked Jun 6 '13 at 23:31 JD Vangsness 3091519 replace all & with & < with < > with > and you should be through –Satya Jun 6 '13 at 23:39 Show us your arrayToXML() function, the problem is in there. –salathe Jun 7 '13 at 8:14 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote accepted You need to escape any ampersands and angle brackets in your XML content. So & should become, &, < should become < and > should become >. The easiest way to do that is probably with str_replace call like this: $string = str_replace( array('&', '<', '>'), array('&', '<', '>'), $string); share|improve this answer edited Jun 6 '13 at 23:42 answe