XML parser error in firefox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sunilsukumar4u
    New Member
    • Nov 2011
    • 1

    #1

    XML parser error in firefox

    I was working in a windows application where I need to generate a sample report. While forming my report, I was to get a input from a hardware which seems to be a string (it is some encoded string in some language not sure what??).
    I drafted my xml with encoding is-8859-1.

    >><RESULT_DESCR IPTION>Hardware Ids String:<![CDATA["????Hc?t ?"]]></RESULT_DESCRIPT ION>

    When i opened the xml in firefox, i got an error saying xml not formatted well pointing at the boxes in the string. but when i opened the same in IE, it did not generate error but printed the contents as it appeared. I also want firefox to do the same. I am not concerned of the string type or the encoded form. But i want it to be displayed with out error in firefox. My user uses only firefox. Is there anything I can do for my firefox to accept the data. I use firefox 7. I am just two days new to the xml. So any help with explanation would be fruitful .

    Thanks in advance,
    Sunil
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    do you define the XML encoding to be Latin-1? the default encoding is UTF-8 and some misinterpreted Latin-1 characters may result in invalid UTF characters (see below) which leads to invalid XML.

    from the specs
    /* any Unicode character, excluding the surrogate blocks, FFFE, and FFFF. */
    Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]
    Last edited by Dormilich; Nov 3 '11, 12:22 PM.

    Comment

    Working...