Jump to content

Recommended Posts

Posted

Hello All,

I have issue with script i am trying to write add _XMLCreateChildNode and get error "COM Error with DOM! Variable must be type of typ 'OBJECT' error # 000000A9"

the code is very simple but i cant figure out where is the pb please advice

Thanks

#include <Constants.au3>
#include <EventLog.au3>
#include <Array.au3>
#Include <File.au3>
#Include <_XMLDomWrapper.au3>

 $DelRpF = _XMLFileOpen (@ScriptDir & "\CPU1.xml")  
            
    ;
    
    $tPathSec ='/chart/chart_data' 
    _XMLCreateChildNode ($tPathSec,'row')
    
    _XMLSaveDoc($DelRpF)

the xml

<chart>
    
    <chart_data>
        <row>
            <null/>
            <string>1sec</string>
            <string>2</string>
            <string>3</string>
            <string>4</string>
            <string>5sec</string>
            <string>6</string>
            <row/>
        
</chart_data>
    
</chart>

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...