Topic: <?xml version="1.0" encoding="utf-8"?> creating problems with mozilla firefox (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=29388" title="Pages that link to Topic: &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt; creating problems with mozilla firefox (Page 1 of 1)" rel="nofollow" >Topic: &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; creating problems with mozilla firefox <span class="small">(Page 1 of 1)</span>\

 
jariwaladivyesh
Obsessive-Compulsive (I) Inmate

From:
Insane since: Jul 2007

posted posted 07-31-2007 13:51

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>

and test.xsl

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/data">
<xsl:text> My name is : <xsl:text>
<xsl:value-of select="data/name" />
</xsl:template>
</xsl:stylesheet>


this works fine with IE...but when i trying to run it with mozilla firefox ...it gives me an error

XML Parsing Error: xml declaration not at start of external entity
Line Number 3, Column 1:<?xml version="1.0" encoding="UTF-8"?>
^

what might be the problem?

Thanx in advance

Divyesh

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 07-31-2007 15:45

Hello frnd,

Can't know for sure but the error message seem rather explicit:

quote:
XML Parsing Error: xml declaration not at start of external entity
Line Number 3, Column 1:<?xml version="1.0" encoding="UTF-8"?>

Try removing the empty lines before the <?xml ... ?> declaration. Also make sure the file are served as UTF-8

jariwaladivyesh
Obsessive-Compulsive (I) Inmate

From:
Insane since: Jul 2007

posted posted 08-01-2007 04:58

Hi,
Its already like this : <?xml version="1.0" encoding="utf-8"?>

there is no spaces between ? and xml...

Thanx in advance

WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

posted posted 08-01-2007 14:53

It would appear that there is space at the top of the file between the start of the file and the <?xml

Dan
Code Town | Zombie Head | How Much TP?



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu