SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Mayday! XML Parsing Error: not well-formed.

  1. #1
    ¿uʍop ǝpısdn ʎɥʍ velocd's Avatar
    Join Date
    Aug 2002
    Location
    California
    Posts
    449
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Mayday! XML Parsing Error: not well-formed.

    I'm sending an XML document via PHP for handling with XMLHttpRequest.

    In the stage of various testing, I ran into a problem when trying to pass a bunch of gibberish. The characters in the <description> nodeValue are apparently not valid for an XML document.

    How do I go about encoding this correctly? What functions in PHP?

    Here is my error:

    http://www.xavn.com/tmp/xml_error.gif
    (may take a moment to load)

    It may be unrelated, but over here the following is said:

    Quote Originally Posted by PHP.net
    If the XML parser encounters characters outside the range that its source encoding is capable of representing, it will return an error.
    If such characters can't be encoded, is there a specification to know what characters they are, so I can regex strip 'em?

    Thanks in advance.
    Cheers.

  2. #2
    $this->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Dec 2003
    Location
    Federal Way, Washington (USA)
    Posts
    1,522
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You might want to read this thread, as I believe it addresses your problem.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    Showcase your music collection on the Web

  3. #3
    ¿uʍop ǝpısdn ʎɥʍ velocd's Avatar
    Join Date
    Aug 2002
    Location
    California
    Posts
    449
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, that solved it. ;-)

Bookmarks

Posting Permissions

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