[xml] parse error on MVS - Start tag expected, '<' not found



Hi,

 

I am trying to parse a buffer that contains an XSD document using xmlParseMemory on MVS. I have the following error

 

Entity: line 1: parser error : Start tag expected, '<' not found               

   _%      ?>        > ?  >                                 /%      ?        % 

^                                                                              

 

It seems the buffer, hence the file, is not well formed: it doesn’t begin with the expected ‘<’ character…

The file is UTF-8 and when looking inside with hex on, it looks fine: the first character is ‘<’ encoded as 4C, which is it’s EBCDIC representation.

 

BROWSE    A003134.XRDIS239.FIC.RESFSQ.MVTXSD.SYS     Line 00000000 Col 001 080

Command ===>                                                  Scroll ===> PAGE

********************************* Top of Data *********************************

------------------------------------------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>                                         

46A994A89A89977F4F748989889877EEC6F766                                        

CF74305592965EF1B0F055364957EF43608FFE                                        

 ------------------------------------------------------------------------------

 

Sounds good to me but there should be something I am missing… Any idea ?

 

Regards,

 

Michaut Stéphane



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]