Parser Error Document Is Empty
Contents |
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 :1: parser error : document is empty libreoffice site About Us Learn more about Stack Overflow the company Business Learn
Simplexml_load_file
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 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up simplexml_load_file Document is empty up vote 2 down vote favorite I'm pulling from a RSS feed: http://search.library.utoronto.ca/UTL/index?Ntt=starcraft&Ntk=Anywhere&Ntx=mode+matchallpartial&N=0&Nu=p_work_normalized&Np=1&rss=1 If you navigate to that with a browser, you get a nice xml page. However, if I do simplexml_load_file("the above url"); in php, I get 1: parser error : Document is empty 1: parser error : Start tag expected, '<' not found in my_file So why can the browser get it but not PHP? If I do file_get_contents("the above url") the function fails with FALSE returned. php xml-parsing simplexml share|improve this question edited Oct 18 '12 at 15:07 Florent 8,27762543 asked Oct 18 '12 at 15:05 Sean Xiao 4511816 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted The site is blocking requests from PHP. First run
exciting Other Packages How to reach us Contact Forum Development Developers Space Manage Wiki Internal edit this panel | recent changes Parser Error: Document is empty Forum » Forum / Support Questions » Parser Error: Document is empty Started by: Philip (guest) Date: 12 Nov 2013 20:22 Number of posts: 1 RSS: New posts Summary: error parsing C_2nd.xml Unfold All Fold All More Options Edit Title & Description Stickness Lock Thread Move Thread Fold Parser Error: Document is empty Philip (guest) 12 Nov 2013 20:22 Hi everyone, +-------------+ |*| |* *| |* WELCOME TO THE ElaStic@exciting *| |* ElaStic Version 1.0.0, Release Date: 2012-01-01 *| |* *| |*| +-------------+ 2nd -=> 2 3rd -=> 3 Please choose the order of the http://stackoverflow.com/questions/12957779/simplexml-load-file-document-is-empty elastic constant (choose '2' or '3'): 2 Please enter the exciting input file name: C_2nd.xml C_2nd.xml:1: parser error : Document is empty ^ C_2nd.xml:1: parser error : Start tag expected, '<' not found ^ unable to parse C_2nd.xml … Oops Error: not completed input! So this is the error I ended up getting. I tried surfing through the website and I found that exciting uses FoX Library for parsing and I downloaded that with the hope of fixing this http://exciting-code.org/forum/t-725197/parser-error:document-is-empty error. Can anyone lead me in a direction to get this fixed? Thank you! Reply Options Unfold Parser Error: Document is empty by Philip (guest), 12 Nov 2013 20:22 New Post Permanent Link Edit Delete /forum/t-725197/parser-error:document-is-empty#post- Help | Terms of Service | Privacy | Report a bug | Flag as objectionable Powered by Wikidot.com Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License Click here to edit contents of this page. Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available. Append content without editing the whole page source. Check out how this page has evolved in the past. If you want to discuss contents of this page - this is the easiest way to do it. View and manage file attachments for this page. A few useful tools to manage this Site. See pages that link to and include this page. Change the name (also URL address, possibly the category) of the page. View wiki source for this page without editing. View/set parent page (used for creating breadcrumbs and structured layout). Notify administrators if there is objectionable content in this page. Something does not work as expected? Find out what you can do. General Wikidot.com documentation and help section. Wikidot.com Terms of Service - what you can, what you should not etc. Wikidot.com Privacy Policy.
Community Blog Create your store Français Español Deutsch Italiano Portuguese Polish Dutch English Features Templates Store Builder Shopping Cart Mobile eMarketing International Integrations Learn Getting Started Themes Modules Showcase Documentation Training Support FAQ https://www.prestashop.com/forums/topic/282160-solved-presta-do-zero-file-php-warning-2-simplexml-load-file/ Community Blog Download Modules Themes Forum English Français Español Deutsch Italiano Portuguese Polish Dutch Sign in Jump to content Forum → International community (English) → Ecommerce x PrestaShop [ARCHIVE BOARD] https://lists.freedesktop.org/archives/libreoffice-bugs/2014-May/195003.html Search Search section: This topic Forums Members Help Javascript Disabled Detected You currently have javascript disabled. Several functions may not work. Please re-enable javascript to access full functionality. [SOLVED] Presta do zero parser error file? [PHP Warning #2] simplexml_load_file()... Started by Anton_bcn, Oct 16 2013 07:10 AM, 3 replies to this topic PHP Warning simplexml_load_file() Please log in to reply #1 Anton_bcn Posted 16 October 2013 - 07:10 AM Anton_bcn PrestaShop Enthusiast Members 146 Active Posts i got some times this warning.... can't understand why is that? [PHP Warning #2] simplexml_load_file() function.simplexml-load-file ...wamp/www/max/config/xml/default_country_modules_list.xml:1: parser error : Document is document is empty empty wamp\www\max\classes\controller\AdminController.php, line 1542 any ideas? some times filedefault_country_modules_list.xls is zero file... so i rewrite all file in dir:config/xml/ and then this work... but until the occur same problem... why is that? Some cache or language module problems? PrestaShop™ 1.5.5.0 Edited by vekia, 18 October 2013 - 11:46 AM. Contact for Help Back to top #2 vekia Posted 17 October 2013 - 09:29 AM vekia PrestaShop Legend Ambassadors 52475 Active Posts hello it might be related to ... connection to prestashop website. i've noticed that you're on localhost, have you got some firewalls which block connection for apache ? in addition, is on your localhost php configurationfile_get_contents function available? free tutorials, free templates, free addons, responsive prestashop modules Back to top #3 Anton_bcn Posted 18 October 2013 - 07:23 AM Anton_bcn PrestaShop Enthusiast Members 146 Active Posts in a power of Google! I found the answer! https://github.com/P...-commit-5d38743 Contact for Help Back to top #4 vekia Posted 18 October 2013 - 11:46 AM vekia PrestaShop Legend Ambassadors 52475 Active Posts hello thank you for url to solution this fix was included to latest release 1.5.6.0
79330] FILEOPEN: DOC Bullet point formatting can't be unformatted Next message: [Libreoffice-bugs] [Bug 79331] FILEOPEN: Parser error loading MS xml file if filename has no .suffix Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] https://bugs.freedesktop.org/show_bug.cgi?id=79331 Priority: medium Bug ID: 79331 Assignee: libreoffice-bugs at lists.freedesktop.org Summary: FILEOPEN: Parser error loading MS xml file if filename has no .suffix Severity: normal Classification: Unclassified OS: Linux (All) Reporter: jim.avera at gmail.com Hardware: Other Whiteboard: BSA Status: UNCONFIRMED Version: 4.2.2.1 release Component: Writer Product: LibreOffice Created attachment 99975 --> https://bugs.freedesktop.org/attachment.cgi?id=99975&action=edit Copy of document at http://www.idoc.idaho.gov/content/form/498 The attached file is supposedly a Microsoft word xml document (usually stored with .docx suffix in the file name). However if the file name has no suffix, LibreOffice emits an error message followed by garbage binary data to the terminal: :1: parser error : Document is empty^M ^C^D^T^M Steps to reproduce: 1. Run: libreoffice http://www.idoc.idaho.gov/content/form/498 or 1. Download the attached copy of that same file and store under filename "498" and open that. Current behavior: Error message with garbage characters appears Expected behavior: Nothing printed to the terminal The MIME-type associated with the document at the referenced url is vnd.openxmlformats-officedocument.wordprocessingml.document which according to various websites means it is a .docx file. Note: Even after printing the parse-error message and garbage characters, the document appears to open normally (eventually) Operating System: Ubuntu Version: 4.2.2.1 release -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: