This could certainly be a problem if you're working with streams. Even if your XML fragments are well-formed documents (basically just a single element, with children), if your character encoding is something other than UTF-8 it won't be recognized unless you either specify the encoding when you supply the input stream to the unmarshaller or add an XML declaration to the start of the fragment that gives the encoding.

 - Dennis

Άγγελος Καράντζαλης wrote:

Is there a possibility that JiBX will fail to unmarshall the xml if a weird
encoding is used ? For instance, I try to umarshall an xml fragment that
might contain Greek characters. During Unmarshalling I get an exception with
message:
Error on line 1: The markup in the document preceding the root element must
be well-formed.

Cheers,

Angel
O:]




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users
  • ... Άγγελος Καράντζαλης
    • ... Dennis Sosnoski
      • ... Άγγελος Καράντζαλης
        • ... Dennis Sosnoski
          • ... Tilman Linden
          • ... Άγγελος Καράντζαλης

Reply via email to