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

while reading xml get error content is not allowed to prolog

Explorer ,
Mar 17, 2008 Mar 17, 2008
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
423
Translate
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.
Translate
LEGEND ,
Mar 17, 2008 Mar 17, 2008
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?
Translate
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
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.
Translate
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