XML plug-in

From NSIS Wiki
Jump to navigationJump to search
Author: Instructor (talk, contrib)


Links

Download v2.0:
Xml.zip (188 KB)

Discussion:
Forum thread

Description

XML plugin parses an XML document, and builds from that a Document Object Model (DOM) that can be read, modified and saved. XML plugin is based on TinyXml (2.5.3) and TinyXPath (1.3.1).


Features:

  • Read and/or modify xml files
  • XPath expressions support
  • Unicode UTF-8 support
  • "MSXML.DLL" independent
  • Support for condense and non-condense white spaces
  • Row and Column tracking

TODOs

x64 support. Currently building on VS2010 Pro results in following errors ( and bunch of warnings ):

Warning 1 warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. c:\users\linards\downloads\xml\source\lex_token.h 120 1 xml Warning 2 warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. c:\users\linards\downloads\xml\source\xpath_syntax.h 48 1 xml Warning 3 warning C4996: '_itoa': This function or variable may be unsafe. Consider using _itoa_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Users\linards\Downloads\XML\Source\xml.cpp 630 1 xml Warning 4 warning C4996: '_itoa': This function or variable may be unsafe. Consider using _itoa_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Users\linards\Downloads\XML\Source\xml.cpp 649 1 xml Warning 5 warning C4996: '_itoa': This function or variable may be unsafe. Consider using _itoa_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Users\linards\Downloads\XML\Source\xml.cpp 662 1 xml Warning 6 warning C4996: '_itoa': This function or variable may be unsafe. Consider using _itoa_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Users\linards\Downloads\XML\Source\xml.cpp 691 1 xml Warning 7 warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Users\linards\Downloads\XML\Source\xml.cpp 737 1 xml Warning 8 warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Users\linards\Downloads\XML\Source\xml.cpp 739 1 xml Error 9 error C2664: 'TinyXPath::o_xpath_node' : cannot convert parameter 3 from 'TiXmlNode *' to 'const TiXmlNode *&' C:\Users\linards\Downloads\XML\Source\xml.cpp 858 1 xml Error 10 error C2664: 'TinyXPath::o_xpath_attribute' : cannot convert parameter 3 from 'TiXmlAttribute *' to 'const TiXmlAttribute *&' C:\Users\linards\Downloads\XML\Source\xml.cpp 875 1 xml ... any help fixing them highly appreciated!