Sign in to follow this  
Followers 0
ileandros

XMLHTTP/ get access to resposeXML

5 posts in this topic

Hello,

As the tittle says i am trying to get access to the responseXML of a url.

ConsoleWrite returns nothing.

As i read at the msdn site to get access to the responseXML i have to set the responseType = "msxml-document" but i got an error because responseType doesn't seem to return nothing at all.

Anyone knows how to get responseXML of url?

$xml = ObjCreate("Microsoft.XMLHTTP")
$xml.Open("GET", $url, 0)
$xml.Send
$xml.responseXML
ConsoleWrite($xml.responseXML)
ConsoleWrite($xml.responseXML.xml)

I feel nothing.It feels great.

Share this post


Link to post
Share on other sites



I recommend using an autoit udf. WinHttp. It works great for my application. I'm able to call a php URL and get the response(echo) from PHP. So an ajax/or responseXML should work. It's not hard to use. Refer to this post for more info and the UDF link is below too.

http://code.google.com/p/autoit-winhttp/downloads/list


EndFuncAutoIt is the shiznit. I love it.

Share this post


Link to post
Share on other sites

Thanks but i already have that udf.

I prefere doing it my self than using that udf, no offence to that udf of course. It is great but doing it my self i can modify it easier.

I have managed making most of those functions in that udf.

My problem is that i would like to know why doesn't it returns me an response. Just for educative reasons

Anyway, i will find my way out. Thanks a lot


I feel nothing.It feels great.

Share this post


Link to post
Share on other sites

Hi,

Why do you want the response to be in XML format ?

$xml.responseText ;text
$xml.responseXML ;object type, I don't know the sub classes.

Br, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

Hi,

Why do you want the response to be in XML format ?

$xml.responseText ;text
$xml.responseXML ;object type, I don't know the sub classes.

Br, FireFox.

because i want to pass it in an other object which aquiers XML format.

Anyway thanks already found it.


I feel nothing.It feels great.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0