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

RV: i need create a xml in memory





   Hello.


    I need create a xml memory  no using fd = open('/tmp/SOFIA.XML':
   O_RDONLY)  only memory


      Sample


   Buff =      '<?xml version="1.0" encoding="utf-8" ?>'  ;



               from.CCSID = 1208;

               to.CCSID   = 0;

               c = QtqIConvOpen(to: from);

               p = XML_ParserCreate(*NULL);


          if (p = *NULL);

             die('Couldn''t allocate memory for parser');

           endif;


              XML_SetStartElementHandler(p: %paddr(start));

              XML_SetEndElementHandler(p: %paddr(end));

              XML_SetCharacterDataHandler(p: %paddr(chardata));

             XML_SetUserData(p: %addr(stack));


    if (XML_Parse(p:Buff : len: done) = XML_STATUS_ERROR);

            // callp
   close(fd);

       die('Parse error at line '

          + %char(XML_GetCurrentLineNumber(p)) + ': '

          + %str(XML_ErrorString(XML_GetErrorCode(p))));

   endif;



     note : you can explain please


   Thanks.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------