rejectpenguin Posted August 7, 2010 Share Posted August 7, 2010 (edited) I tried searching but couldn't find any relevant information that was helpful to me. Im trying to get the xml off a currently loaded IE page but can't seem to figure it out. $oIE = _IEAttach("The World of Warcraft Armory") _IENavigate($oIE,"http://www.wowarmory.com/character-sheet.xml?r=Anub%27arak&n=Lovepenguin") _IELoadWait($oIE) How can I get the xml of the oIE object. _IEDocReadHTML just gives the html of the page not the xml. Also I have to use the oIE object because I need the xml of the page after someone has logged in. So if we create a new object it won't have the user already logged in. Edited August 7, 2010 by rejectpenguin Link to comment Share on other sites More sharing options...
rejectpenguin Posted August 7, 2010 Author Share Posted August 7, 2010 (edited) After going through quite a few COM objects after not even knowing what COM objects were at first I figured out that a simple method would be to use the XMLDocument COM. Then use the XMLDomWrapper library. $oXML = $oIE.document.XMLDocument _XMLFileOpen($oXML) Simple and it works awesome! Edited August 7, 2010 by rejectpenguin Link to comment Share on other sites More sharing options...
rejectpenguin Posted August 7, 2010 Author Share Posted August 7, 2010 (edited) Oy, apparently it doesn't like me using the COM I am now getting spammed with errors if I try and use the $oIE object. --> IE.au3 V2.4-0 Warning from function internal function __IEIsObjType, Cannot register internal error handler, cannot trap COM errors (Use _IEErrorHandlerRegister() to register a user error handler) _IENavigate($oIE,"http://www.wowarmory.com/character-sheet.xml?r=Anub%27arak&n=Lovepenguin") _IELoadWait($oIE) $oXML = $oIE.document.XMLDocument ... _IENavigate($oIE,"http://www.google.com") Edited August 7, 2010 by rejectpenguin Link to comment Share on other sites More sharing options...
seandisanti Posted August 8, 2010 Share Posted August 8, 2010 Oy, apparently it doesn't like me using the COM I am now getting spammed with errors if I try and use the $oIE object. --> IE.au3 V2.4-0 Warning from function internal function __IEIsObjType, Cannot register internal error handler, cannot trap COM errors (Use _IEErrorHandlerRegister() to register a user error handler) _IENavigate($oIE,"http://www.wowarmory.com/character-sheet.xml?r=Anub%27arak&n=Lovepenguin") _IELoadWait($oIE) $oXML = $oIE.document.XMLDocument ... _IENavigate($oIE,"http://www.google.com") If you use the errorhandler suggestion in the output, you may get more info to pin down what exactly is going wrong Link to comment Share on other sites More sharing options...
rejectpenguin Posted August 8, 2010 Author Share Posted August 8, 2010 (edited) If you use the errorhandler suggestion in the output, you may get more info to pin down what exactly is going wrongI put _IEErrorHandlerRegister() at the beginning of the script and now it shows no errors. So I guess the only error was not having an error handler! Thanks! Edited August 24, 2010 by rejectpenguin 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