"content is not allowed in prolog" using Oxygen fo
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 1
- Joined: Thu Jun 01, 2006 6:28 pm
"content is not allowed in prolog" using Oxygen fo
Post by joshuajnoble »
I'm trying to use Oxygen to edit MXML files (Macromedia Flex). Everything works fine except that this error always appears: content is not allowed in prolog. What's up with this? Here's the line it chokes on:
<?xml version="1.0" encoding="utf-8"?>
This is the way all Flex files start and there don't seem to be any problems there. Anybody know what's up?
<?xml version="1.0" encoding="utf-8"?>
This is the way all Flex files start and there don't seem to be any problems there. Anybody know what's up?
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Hello,
The first character must be <, so the BOM of that file is corrupted or the file contains some invisible characters before the < character. If you create a new XML file and you type at the beginning
the error does not appear.
Regards,
Sorin
The first character must be <, so the BOM of that file is corrupted or the file contains some invisible characters before the < character. If you create a new XML file and you type at the beginning
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
Regards,
Sorin
-
- Posts: 7
- Joined: Fri Aug 31, 2007 4:15 pm
- Location: France
same, but with oxygen native file
Hello,
I have a similar error "org.xml.sax.SAXParseException: Content is not allowed in prolog."
I'm using oxygen 8.2 on winXP and trying to produce a PDF using the internal FOP engine.
(fyi my Java runtime is "1.3.1_01")
After having done some googleing, I saw that it could come from cut&paste issues from external editors (I indeed sometime use UltraEdit). So I tried from scratch within oxygen, creating an almost empty xml source file (only the declarations). And I get the same error.
My file is suposedly UTF-8 encoded. In a binary viewer I see it starts with FF FE before the 3C ("<").
Maybe an important clue: this only occurs when trying to generate PDFs (whether is is using FOP or TEI). No issue when transforming into html or other xml using the same xsl-fo file.
Any help would be greatly appreciated, as I enjoy quite a lot working with oxygen, but already spent a few hours on this blocking problem.
Thanks a lot in advance
I have a similar error "org.xml.sax.SAXParseException: Content is not allowed in prolog."
I'm using oxygen 8.2 on winXP and trying to produce a PDF using the internal FOP engine.
(fyi my Java runtime is "1.3.1_01")
After having done some googleing, I saw that it could come from cut&paste issues from external editors (I indeed sometime use UltraEdit). So I tried from scratch within oxygen, creating an almost empty xml source file (only the declarations). And I get the same error.
My file is suposedly UTF-8 encoded. In a binary viewer I see it starts with FF FE before the 3C ("<").
Maybe an important clue: this only occurs when trying to generate PDFs (whether is is using FOP or TEI). No issue when transforming into html or other xml using the same xsl-fo file.
Any help would be greatly appreciated, as I enjoy quite a lot working with oxygen, but already spent a few hours on this blocking problem.
Thanks a lot in advance
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: same, but with oxygen native file
Post by sorin_ristache »
Hello,
Regards,
Sorin
oXygen does not support Java versions older than 1.4.2.Marc R. wrote:(fyi my Java runtime is "1.3.1_01")
Is the option BOM handling set to Write in Options -> Preferences -> Global?Marc R. wrote:So I tried from scratch within oxygen, creating an almost empty xml source file (only the declarations). And I get the same error.
My file is suposedly UTF-8 encoded. In a binary viewer I see it starts with FF FE before the 3C ("<").
Regards,
Sorin
-
- Posts: 7
- Joined: Fri Aug 31, 2007 4:15 pm
- Location: France
Thanks for your answers.
I checked my java version, I had an issue with the paths (I knew I had a more recent version than 1.3, and it was caused by and Oracle distribution of the old jre). Now it says 1.6.0.2, which is correct.
And yes the option is set to "write" for the BOM handling, but the error still occurs.
I checked my java version, I had an issue with the paths (I knew I had a more recent version than 1.3, and it was caused by and Oracle distribution of the old jre). Now it says 1.6.0.2, which is correct.
And yes the option is set to "write" for the BOM handling, but the error still occurs.
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: same, but with oxygen native file
Post by sorin_ristache »
Marc R. wrote:So I tried from scratch within oxygen, creating an almost empty xml source file (only the declarations). And I get the same error.
My file is suposedly UTF-8 encoded. In a binary viewer I see it starts with FF FE before the 3C ("<").
If the option is set to Write oXygen adds a BOM marker to the XML file but the BOM marker for UTF-8 is not FF FE. Does the XML file begin with an UTF-8 declaration like the following?Marc R. wrote:And yes the option is set to "write" for the BOM handling, but the error still occurs.
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
Regards,
Sorin
-
- Posts: 7
- Joined: Fri Aug 31, 2007 4:15 pm
- Location: France
I found a solution. I extracted the default fop config file from the fop 0.93 official binary release, set it up in the options>FO processor and now it works, no more errors with the prolog.Marc R. wrote: And yes the option is set to "write" for the BOM handling, but the error still occurs.
Thanks for your help anyways!
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service