Thread: LPX-00217: invalid character 0 (U+0000)

  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    10

    LPX-00217: invalid character 0 (U+0000)

    I am getting the below error when parsing a xml
    Creating XML context...
    Parsing XML ...
    In line 1 of buffer:LPX-00217: invalid character 0 (U+0000)

    The xml is already read into a buffer
    ecode = XmlLoadSax(xctx, &saxcb, &sc, "buffer", addr_buf, "buffer_length", buf_len,
    "validate", TRUE, "discard_whitespace", TRUE, NULL)

    I understand that null characters are getting appended when the xml is read into the buffer.I need to remove them!!!
    Any help appreciated.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Well that would depend on how you're loading the file wouldnt it!

    Does your buf_len count the \0?
    Is it supposed to (did you read the spec?)
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  2. weird error
    By gandalf_bar in forum Linux Programming
    Replies: 2
    Last Post: 07-17-2005, 07:32 AM
  3. W B : Invalid or incomplete multibyte or wide character
    By SoFarAway in forum C Programming
    Replies: 1
    Last Post: 02-19-2005, 12:40 AM
  4. Nested loop frustration
    By caroundw5h in forum C Programming
    Replies: 14
    Last Post: 03-15-2004, 09:45 PM
  5. Flood of errors when include .h
    By erik2004 in forum C++ Programming
    Replies: 14
    Last Post: 12-07-2002, 07:37 AM

Tags for this Thread