0 Replies Latest reply on Mar 14, 2005 7:03 PM by 440180

    xmlparsebuf returns error 200

    440180
      Hi,
      I'm using XDK 9.0.2.
      After initializing the parser successfully I try to parse and validate an input XML buffer that includes the DTD in the following way:

      ecode = xmlparsebuf(ctx,
      (oratext *)i_xmlMessage,
      dtd_xml_buf_size,
      (oratext *) 0,
      XML_FLAG_STOP_ON_WARNING | XML_FLAG_VALIDATE | XML_FLAG_DISCARD_WHITESPACE);

      But I get error XMLERR_CONVERT (encoding conversion problem).

      Why do I get this error code?

      The input XML buffer is as follows:

      <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE INTRA_PORT [<!ELEMENT INTRA_PORT (HEADER, DD_T, NNSP, RETOSSP, LRN?, EADDT?, PORTED_NUM+)><!ELEMENT HEADER (INTERFACE?, ORIGINATOR?, DESTINATION?, MESSAGE_ID?, MSGTYPE, TIMESTAMP?)><!ELEMENT INTERFACE (#PCDATA)><!ELEMENT ORIGINATOR (#PCDATA)><!ELEMENT DESTINATION (#PCDATA)><!ELEMENT MESSAGE_ID (#PCDATA)><!ELEMENT MSGTYPE (#PCDATA)><!ELEMENT TIMESTAMP (#PCDATA)><!ELEMENT DD_T (#PCDATA)><!ELEMENT NNSP (#PCDATA)><!ELEMENT RETOSSP (#PCDATA)><!ELEMENT LRN (#PCDATA)><!ELEMENT EADDT (#PCDATA)><!ELEMENT PORTED_NUM (#PCDATA)>]><INTRA_PORT><HEADER><INTERFACE></INTERFACE><ORIGINATOR></ORIGINATOR><DESTINATION></DESTINATION><MESSAGE_ID>GGG101_51</MESSAGE_ID><MSGTYPE>ISP</MSGTYPE><TIMESTAMP>111920040102</TIMESTAMP></HEADER><DD_T>111920040102</DD_T><NNSP>6214</NNSP><RETOSSP>N</RETOSSP><LRN>9999999999</LRN><EADDT>111920040102</EADDT><PORTED_NUM>888-888-8888</PORTED_NUM></INTRA_PORT>

      Thanks,
      Eran.