One other language besides AHK, that I use heavily is PowerShell, it is known for its strong support of Json, XML, CSV right out of the box.
I would like to be able to serialise and desterilise data using Json, XML and CSV in AutoHotkey too. I have done some searching for Json, XML and CSV in AHK and have only managed to come to a conclusion in the Json case. G33kDude's own benchmark says its highly performant. He also maintains it, and is working on a V2 port.
Sadly I have not come across any good solutions for CSV and XML. I found random sporadic libraries that are on the old libraries.
In the case of XML, I noticed allot of the code examples were using something like:
Code: Select all
XMLDoc := loadXML(Instructions)
o := ComObjCreate("MSXML2.DOMDocument.6.0")
o.async := false
o.loadXML(data)
Is this what I think it means? That its essentially possible to create XML documents from scratch/read from disk etc via COM? If so, are there any performance loss with this method as opposed to something AHK can natively do?>Microsoft XML Core Services (MSXML) provides a comprehensive set of W3C compliant XML APIs for building high-performance XML-based applications. The detail variations, clarifications, and extensions to certain final approved web standards supported by MSXML 3.0 and MSXML 6.0 are documented in Internet Explorer Standards Support Documentation..
Is this even proffered method AutoHotkey programmers like to create/read from disk/write to disk XML files? If so it would explain why there is no library dedicated to it.
I still have not found a way to go about working with CSV, My favourite of the three.
Thanks!