• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

while reading xml get error content is not allowed to prolog

Explorer ,
Mar 17, 2008 Mar 17, 2008

Copy link to clipboard

Copied

while reading xml I get error content is not allowed to prolog.
I tried removing while space, Save doc as utf-8 encoding.
What is about this encoding?
I am using XMLParse() to read document. Is there any other way I can read xml file & access it's elements in coldfusion code or what might be wrong with my xml file. Becuause it displays properly in Internet Explorer. That means it doesn't have any missed tags or simple errors for sure.
TOPICS
Advanced techniques

Views

399

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Mar 17, 2008 Mar 17, 2008
thank you for your reply.

I came across some article saying if
xml tag definition & <root tag have space between them one gets this error. I also saved my files in utf-8 encoding.
I think one of that worked for me.

Votes

Translate

Translate
LEGEND ,
Mar 17, 2008 Mar 17, 2008

Copy link to clipboard

Copied

sankalpah wrote:
> while reading xml I get error content is not allowed to prolog.
> I tried removing while space, Save doc as utf-8 encoding.
> What is about this encoding?
> I am using XMLParse() to read document. Is there any other way I can read xml
> file & access it's elements in coldfusion code or what might be wrong with my
> xml file. Becuause it displays properly in Internet Explorer. That means it
> doesn't have any missed tags or simple errors for sure.
>


There was a recent thread that came to the conlclusion that this can be
a problem with BOM multi=-byte characters.

Where are you reading the XML from?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 17, 2008 Mar 17, 2008

Copy link to clipboard

Copied

LATEST
thank you for your reply.

I came across some article saying if
xml tag definition & <root tag have space between them one gets this error. I also saved my files in utf-8 encoding.
I think one of that worked for me.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation