XML Parsing error

Have a programming question regarding your component, plug-in, extension or core hacks? Have an interesting tidbit, FAQ or programming tip you’d like to share? This is the place for you.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Post Reply
sgreen
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Mon Oct 24, 2005 1:36 am

XML Parsing error

Post by sgreen » Thu Feb 07, 2008 8:52 pm

Hi,

Uploading/Installing of component gives this error:

XML Parsing Error at 1:0. Error 4: not well-formed (invalid token)


XML file is as per tutorials.

Any ideas?

StuG

radiant_tech
Joomla! Apprentice
Joomla! Apprentice
Posts: 41
Joined: Sat Dec 15, 2007 3:02 pm
Location: Washington DC Metro

Re: XML Parsing error

Post by radiant_tech » Thu Feb 07, 2008 10:16 pm

You have a character in the xml file that is not allowed by the XML parser (i.e, & instead of &).  Take a fine tooth comb back through the file.
Denise

sgreen
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Mon Oct 24, 2005 1:36 am

Re: XML Parsing error - Possible J1.5 Bug

Post by sgreen » Fri Feb 08, 2008 9:46 pm

I thought that, but I think this is a bug in J1.5.

Have run the offending XML file through a parser and it looks like the specification is flawed. Even the demo XML file in the 'Hello World' tutorial causes the same error.  I think there may be a bug in the spec at http://dev.joomla.org/xml/1.5/component-install.dtd.

Any thoughts?

radiant_tech
Joomla! Apprentice
Joomla! Apprentice
Posts: 41
Joined: Sat Dec 15, 2007 3:02 pm
Location: Washington DC Metro

Re: XML Parsing error

Post by radiant_tech » Fri Feb 08, 2008 10:21 pm

Ah yes, on that point I agree.  If you remove that line of the xml file all works as expected.  Note that tutorial was written almost a year ago and updates of the docs are no where near completed.
Denise


Post Reply