Jump to content


Important Announcement!

Please read this post

Photo
- - - - -

How to fix 'XML Parsing Error' when creating help.xhtml


  • Please log in to reply
2 replies to this topic

#1 daveschaefer

daveschaefer

    Member

  • Members
  • 10 posts


  • Extension Developer: Yes
  • Extensions: Perspectives - http://perspectives-project.org
  • Translator for English (en-US)
  • My OS Gnu/Linux

Posted 07 April 2012 - 06:51 PM

Hello,

Recently I began extracting the strings for my help.html page and moving them to help.dtd and help.xhtml, as specified in Goofy's excellent guide here (thanks Goofy!).

While creating my .xhtml page I kept getting this error when trying to load the page "XML Parsing Error", which was unhelpfully pointing to the "%helpDTD;" part of the document.

After spending some time troubleshooting I finally figured out that this error was caused by one of my .dtd entities not having a closing >. So, I just wanted to post here to mention the error in case anyone else runs into it.


I have added a Troubleshooting section to the wiki guide at http://wiki.babelzil...of_an_extension , with some things to watch out for. Hopefully that helps people so they don't run into the same trouble as me!


Happy localizing!

#2 Goofy

Goofy

    Advanced Member

  • Super Mod
  • 8,435 posts
  • Gender:Male
  • Location:GoofyLand


  • Extension Developer: Yes
  • Extensions: BabelZillaMenu-BabelZilla Glossary-OpenTran...
  • Translator for French (fr)
  • My OS Gnu/Linux
  • Translation Credits to Goofy

Posted 08 April 2012 - 03:29 PM

QUOTE (daveschaefer @ Apr 7 2012, 19:51) <{POST_SNAPBACK}>
Hello,

Recently I began extracting the strings for my help.html page and moving them to help.dtd and help.xhtml, as specified in Goofy's excellent guide here (thanks Goofy!).

While creating my .xhtml page I kept getting this error when trying to load the page "XML Parsing Error", which was unhelpfully pointing to the "%helpDTD;" part of the document.

After spending some time troubleshooting I finally figured out that this error was caused by one of my .dtd entities not having a closing >. So, I just wanted to post here to mention the error in case anyone else runs into it.


I have added a Troubleshooting section to the wiki guide at http://wiki.babelzil...of_an_extension , with some things to watch out for. Hopefully that helps people so they don't run into the same trouble as me!

Happy localizing!


Sure it can help, thanks so much smile.gif Note that missing one end-delimiter tag throws a parsing error even in the more usual case (when a .dtd is created from its corresponding .xul file).


Think Global, Make Locales!


Sometimes I am on irc://moznet/BabelZilla
but you can also drop a word in the shoutbox

#3 daveschaefer

daveschaefer

    Member

  • Members
  • 10 posts


  • Extension Developer: Yes
  • Extensions: Perspectives - http://perspectives-project.org
  • Translator for English (en-US)
  • My OS Gnu/Linux

Posted 10 April 2012 - 07:40 AM

Hey I have a question about the wikis - it appears there is both http://wiki.babelzilla.org and http://babelwiki.babelzilla.org . What's the difference? The edits I made show up on one of those sites but not the other :-/ Are they not mirrors of each other?

I can post this question in a separate thread if that's more appropriate.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users