Results 1 to 3 of 3

Thread: ***? Invalid XML Character...again!

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2000
    Location
    Sedgefield
    Posts
    337

    ***? Invalid XML Character...again!

    My XML parser routines throw a fatal error on encountering the NULL character at the end of my XML file. The nest thing is that the parser wrote that character into the file in the first place!!! ***?

    Anybody know how / why / what to do?

    An unrelated point - has anyone been able to get the 'put_encoding' method of the XML writer to work properly? I had to hardcode-hack my XML declaration into the file...

    Dan

    Outside of a dog, a book is a man's best friend.
    Inside of a dog, it's too dark to read.

  2. #2
    Fanatic Member Jerry Grant's Avatar
    Join Date
    Jul 2000
    Location
    Dorset, UK
    Posts
    810
    Are you sure you are not putting in the null character when you are putting in the encoding method inadvertantly?

    Try to set the encoding method with the creatProcessingInstruction method
    Jerry Grant................tnarG yrreJ
    Website: <JG-Design></.net>
    Email: [email protected]
    Working towards a bug free world......
    (Not a Microsoft employee)

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2000
    Location
    Sedgefield
    Posts
    337

    Yeah...?

    Yes, I was adding the NULL myself hacking the XML declaration in.

    Re your suggestion... I should use 'omit_xml_declaration' and createPI methods?

    Dan

    Outside of a dog, a book is a man's best friend.
    Inside of a dog, it's too dark to read.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width