jaideept Posted December 27, 2011 Share Posted December 27, 2011 Hello, i want to save output of a html page which is a xml. please let me know if i can save it as xml using autoit. Thanks, Jaideep Link to comment Share on other sites More sharing options...
Robjong Posted December 27, 2011 Share Posted December 27, 2011 yes Link to comment Share on other sites More sharing options...
sleepydvdr Posted December 27, 2011 Share Posted December 27, 2011 I think the code should look something like this: #include <INet.au3> $read = _INetGetSource ("http://www.google.com") ; be sure to use http:// in the address FileWrite("output.xml", $read) #include <ByteMe.au3> Link to comment Share on other sites More sharing options...
jaideept Posted December 29, 2011 Author Share Posted December 29, 2011 Thanks,but in our case, we need to fill up various fields like, text boxes, radio buttons etc for few pages and finally clicking on submit button, the final page would display xml output, for e.g <?xml version="1.0" encoding="UTF-8" ?>- <Document> <XMLVersion version="1.00" />- <Record> <PacketID /> <PacketSequence /> <Ref1 /> <Ref2 /> <Ref3 /> <Ref4 /> <FileName>3</FileName> <FileID /> <Status type="Error" /> i tried following:$read = _INetGetSource ($oIE)but it is not working.Thanks,Jaideep Link to comment Share on other sites More sharing options...
Beege Posted December 29, 2011 Share Posted December 29, 2011 i tried following:$read = _INetGetSource ($oIE)but it is not working.Is $oIE a URL string in your script? Or is that an IE object? Assembly Code: fasmg . fasm . BmpSearch . Au3 Syntax Highlighter . Bounce Multithreading Example . IDispatchASMUDFs: Explorer Frame . ITaskBarList . Scrolling Line Graph . Tray Icon Bar Graph . Explorer Listview . Wiimote . WinSnap . Flicker Free Labels . iTunesPrograms: Ftp Explorer . Snipster . Network Meter . Resistance Calculator Link to comment Share on other sites More sharing options...
jaideept Posted December 29, 2011 Author Share Posted December 29, 2011 it is an IE object. Link to comment Share on other sites More sharing options...
Beege Posted December 29, 2011 Share Posted December 29, 2011 It needs to be an actual URL string. In general, only use IE objects with IE functions. INet functions are not designed for them. Assembly Code: fasmg . fasm . BmpSearch . Au3 Syntax Highlighter . Bounce Multithreading Example . IDispatchASMUDFs: Explorer Frame . ITaskBarList . Scrolling Line Graph . Tray Icon Bar Graph . Explorer Listview . Wiimote . WinSnap . Flicker Free Labels . iTunesPrograms: Ftp Explorer . Snipster . Network Meter . Resistance Calculator Link to comment Share on other sites More sharing options...
jaideept Posted December 30, 2011 Author Share Posted December 30, 2011 thanks Beege, on that note, i have to use IE object to navigate initial url, then filling up various fields like, text boxes, radio buttons up to few pages and finally clicking on submit button, the final page would display xml output. is there any way to capture the xml rendered in IE and save it as xml. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now