[xml] xmlParseMemory problem



Hi Guys,

I am trying to parse following string using  xmlParseMemory(msg,strlen(msg)):

cont char * msg;

where msg is

<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns="urn:iana:xml:ns:epp-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:iana:xml:ns:epp-1.0 epp-1.0.xsd">
 <response>
  <result code="1000">
   <msg lang="en-US">Command Completed successfully</msg>
  </result>
  <trID>
   <clTRID>ABC-1000</clTRID>
   <svTRID>SERVER-ID-9999</svTRID>
  </trID>
 </response>
</epp>
 

I am getting following erros when i debug code:

              __cfree()  malloc.c, 3054
             free()
              xmlFreeInputStream()  parserInternals.c, 1916
              xmlFreeParserCtxt()  parserInternals.c, 2303
              xmlSAXParseMemory()  parser.c, 9987
              xmlParseMemory()  parser.c, 10003
 

Please help me , I am going nuts and not able to find help from anywhere.

Thanks
Anand
 
 
 
 



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