Is there any easy way to open/edit/save XML file? Any function which can open xml file into array? I tried _FileReadToArray($filepath, $aArray)
but this has wrong codding (I need utf-16, not ansi)
相关问题
- Illegal to have multiple roots (start tag in epilo
- How to get the maximum of more than 2 numbers in V
- Faster loop: foreach vs some (performance of jsper
- Convert Array to custom object list c#
- pick a random item from a javascript array
相关文章
- Creating XML Elements without namespace declaratio
- Numpy matrix of coordinates
- Get Attribute Value From Simple XML Using JQuery /
- PHP: Can an array have an array as a key in a key-
- Accessing an array element when returning from a f
- How can I convert a PHP function's parameter l
- How to make a custom list deserializer in Gson?
- Directly signing an Office Word document using XML
There is also an "official" function named "_SML_ElementsToArry()"
Cheers, Vlu.
This code works for reading an XML file and loading it into a dynamically sized 2D array. It requires Eltorro's _MSXML.au3 UDF.
there is a XML DOM Wrapper available for AutoIT.
Just have a look at:
http://www.autoitscript.com/forum/topic/19848-xml-dom-wrapper-com/
The Download Links on the first page are broken (Thread is a bit old ;), so try using these below:
http://www.autoitscript.com/forum/topic/19848-xml-dom-wrapper-com/page-38
https://raw.githubusercontent.com/Silvernine0S/FolderMenu3EX/master/Include/XMLDomWrapper.au3
I use the lib with AutoIT Version v3.3.8.1 (Seems to be working so far).
You can use MSXML to properly read the XML file:
You can then use the MSXML API to build up your array.