KB_XmlParse.c
上传用户:fy98168
上传日期:2015-06-26
资源大小:13771k
文件大小:2k
源码类别:

DVD

开发平台:

C/C++

  1. //-----------------------------------------------------------------------------
  2. // FILE NAME:    ParseTest.c
  3. //
  4. // DESCRIPTION:  
  5. //
  6. // DOCUMENT REF: 
  7. //
  8. // NOTES:        
  9. //----------------------------------------------------------------------------
  10. //
  11. //-----------------------------------------------------------------------------
  12. // Standard include files:
  13. //-----------------------------------------------------------------------------
  14. #include "Stdio.h"
  15. #include "String.h"
  16. //-----------------------------------------------------------------------------
  17. // Project include files:
  18. //-----------------------------------------------------------------------------
  19. #include "QXml.h"
  20. #include "XmlStbInfo.h"
  21. //-----------------------------------------------------------------------------
  22. // Types and defines:
  23. //-----------------------------------------------------------------------------
  24. //-----------------------------------------------------------------------------
  25. // Exported functions:
  26. //-----------------------------------------------------------------------------
  27. //-----------------------------------------------------------------------------
  28. // FUNCTION:    printfFileData
  29. //
  30. // DESCRIPTION: 打印文件数据
  31. //
  32. // RETURN:      None
  33. //
  34. // NOTES:        
  35. //-----------------------------------------------------------------------------
  36. void KB_XmlParse(char *buf, int bufsize)
  37. {
  38. QXml xml = NewQXml();
  39. //ResetXmlStbInfo();
  40. QXmlParseBuff(&xml, buf);
  41. xml.Release(&xml);
  42. //PrintXMLMovieInfo();
  43. kb_xml_printServiceInfo();
  44.     //PrintXMLWeatherInfo();
  45.        //PrintXMLBulletinInfo();
  46.        //PrintXMLVoteInfo();
  47.        //kb_xml_printServiceInfo();
  48. }
  49. //EOF