Jump to content

Recommended Posts

Ok, I generate this xml code, by an sql instruction..

[code]
<?xml version="1.0" encoding="ISO-8859-1"?>
<xml>
<turma>
<codigo>40003239</codigo>
<codigo_usuario>000021</codigo_usuario>
<data_ini>11/07/2006</data_ini>
<data_fim>25/07/2006</data_fim>
<hora_ini>18:45:00</hora_ini>
<hora_fim>21:45:00</hora_fim>
<vagas>22</vagas>
<dom></dom>
<seg>0</seg>
<ter>1</ter>
<qua>0</qua>
<qui>1</qui>
<sex>0</sex>
<sab></sab>
<valor>110</valor>
</turma>
</xml>
[/code]

if I open the page using Internet Explorer, it's ok...
but if I open using FIreFox
[b]
XML Parsing Error: xml declaration not at start of external entity
Location: ......
Line Number 3, Column 1:
[/b]


someone help me!! :)
Link to comment
https://forums.phpfreaks.com/topic/6567-php-and-xml/
Share on other sites

after what I've read up on you have to remove any extra whitespace you might have at the top or end of the file. That seems to be the things in common when other have had the same error.

either [a href=\"http://www.google.com\" target=\"_blank\"]google[/a] for that error msg, or you could read a bit [a href=\"http://wordpress.org/support/topic/7713\" target=\"_blank\"]here[/a] about it. just scroll down, it takes awhile till they address the problem.

but my tip is to look for whitespace, make sure it's all eliminated where possible at the start and end.

HTH.
Link to comment
https://forums.phpfreaks.com/topic/6567-php-and-xml/#findComment-23869
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.