2 Replies Latest reply on Mar 17, 2008 7:18 PM by sankalpah

    while reading xml get error content is not allowed to prolog

    sankalpah Level 1
      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.
        • 1. Re: while reading xml get error content is not allowed to   prolog
          Level 7
          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?
          • 2. while reading xml get error content is not allowed to prolog
            sankalpah Level 1
            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.