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

This is a discussion on LPX-00217: invalid character 0 (U+0000) within the C Programming forums, part of the General Programming Boards category; I am getting the below error when parsing a xml Creating XML context... Parsing XML ... In line 1 of ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,451
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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-18-2005, 11:40 PM
  4. Nested loop frustration
    By caroundw5h in forum C Programming
    Replies: 14
    Last Post: 03-15-2004, 08:45 PM
  5. Flood of errors when include .h
    By erik2004 in forum C++ Programming
    Replies: 14
    Last Post: 12-07-2002, 06:37 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21