Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

XML AppendChild

$
0
0

hello world.

 

I am trying to append some child nodes? and remove "default".  I am getting thrown off by the long names of each node "<setting name = "Clients" serializeAs="xml">"

 

 


<?xml version="1.0" encoding="utf-8"?>
<configuration>   
    <userSettings>
        <RAAD.My.MySettings>            
            <setting name="Clients" serializeAs="Xml">
                <value>
                    <ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                        xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                        <string>default</string>
                    </ArrayOfString>
                </value>
            </setting>            
        </RAAD.My.MySettings>
    </userSettings>
</configuration>
 
$cfg_file = "C:\user.config"   $oXML = ObjCreate("Microsoft.XMLDOM")   If Not IsObj($oXML) Then     MsgBox(0, "", "Unable to create COM session to XML.")     Exit EndIf   $stest = FileRead($cfg_file) $oXML.LoadXML($stest)   ConsoleWrite($oXML.xML)

Viewing all articles
Browse latest Browse all 12506

Trending Articles