简体   繁体   中英

how to read particular element from xml in nsis without using plugins

In my windows NSIS installer, I need to read few values from xml (config) file. Can any1 please let me know how to read values from xml without using plugins?

thanks,

Why not use the answer I gave you here ?

The pluginless requirement is pretty dumb IMHO but if you really really wanted to do it you could create a basic XML reader by just using FileOpen, FileRead, StrCpy and StrLen (The basic building blocks of any pluginless text based file reader). This will require a lot of work and you are probably not going to be able to follow all XML parsing rules, and without any kind of XPath/query support or nodes in general you will have put your data extraction logic inside your little XML parser!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM