I have an xml file and I need to pull the outcall and incalls to arrays, I'm lost.. Any help would be great
XML File
<?xml version="1.0"?>
<phone>
<hourstart>10</hourstart>
<hourstop>1</hourstop>
<id>1510 10 3</id>
<light>no</light>
<call>Line_1_459.55 Line_1_2655.06</call>
<call>Line_1_464.85 Line_1_2667.57</call>
<call>Line_1_470.11 Line_1_2680.01</call>
<call>Line_1_475.57 Line_1_2692.9</call>
<call>Line_1_480.9 Line_1_2705.49</call>
<call>Line_1_486.2 Line_1_2718.01</call
<outcall>Line_1_604.13 Line_1_2523.96</outcall>
<outcall>Line_1_617.85 Line_1_2522.98</outcall>
<outcall>Line_1_620.82 Line_1_2538.1</outcall>
<outcall>Line_1_616.26 Line_1_2550.58</outcall>
<outcall>Line_1_609.74 Line_1_2562.6</outcall>
</phone>
I have a quick question, has there been a library written to drive 'FireFox' web browser? After building a small suite of testing tools for work, I've been ask to do the same with FireFox.
- Shane
I was just about to look into writing a few small tools for my VMWare testbed servers in the VMWare VMCom in AutoIT and thought I'd ask to see if anyone else has tried to do this yet. You can check out the Free VMWare Server application at http://www.vmware.com/download/server/ They are offering a nice .COM scripting dll also. It can be downloaded with the Server tool set.
Is it just me (to be honest It would not surprise me!) or is there a problem using character class types in AutoIt's StringRegExp function. IE /r /w /s /W
I have included some example code, and it looks strange but It does work in Python, Perl, and a few other places I have checked.
;example code
#Include <Array.au3>
dim $_tmp
dim $_a
; these are tab's BTW....
$_a = " This is a Test" & @CRLF
$_tmp1 =StringRegExp($_a , '[^a-zA-Z0-9 ]+(.+)\r$', 3)
; we should have array display pop up if $_tmp is an array!
_ArrayDisplay($_tmp, "We have:")
I can get around this, but its messy. Is it possible receive and array from a function that would have arrays inside it?
The kicker is, I have no idea how large the returning array will be when it is returned.
example return array: [4, ["This, "is", "a", "Test], 2, ["o", "kay"]]
Quick question, and did could not find a function, topic, hint on how to use AutoIT V3 to make an entry within the windows system logs. Any suggestions on how to do this?
I have used the little i386 windows version of cURL for this. The SSL version I use can be found at cURL the example I'll post about here is from their FAQ page. See Curl Documents(4.3 File Upload POST) Back in late 1995 they defined an additional way to post data over HTTP. It is documented in the RFC 1867, why this method sometimes is referred to as RFC1867-posting. This method is mainly designed to better support file uploads. A form that allows a user to upload a file could be written like this in HTML page: <form method="POST" enctype='multipart/form-data' action="upload.cgi">
<input type=file name=upload>
<input type=submit name=press value="OK">
</form> This clearly shows that the Content-Type about to be sent is multipart/form-data. To post to a form like this with curl, you enter a command line like: curl -F upload=@localfilename -F press=OK [URL]