Description:-
Here we will retrieve HTML Code from Website Address. Here I will show you how to get HTML Code from URL in Ax. Create Job and Insert your URL from Which Website HTML Code you want and run you’re Job to get in Infolog.
Code:-
Here we will retrieve HTML Code from Website Address. Here I will show you how to get HTML Code from URL in Ax. Create Job and Insert your URL from Which Website HTML Code you want and run you’re Job to get in Infolog.
Code:-
static void WebClient(Args _args) { System.Net.WebClientmyWebClient; System.IO.StreammyStream; System.IO.StreamReadermyStreamReader; str content; strmyURL="http://www.google.co.in"; ; myWebClient = newSystem.Net.WebClient(); myStream=myWebClient.OpenRead(myURL); myStreamReader = newSystem.IO.StreamReader(myStream); content=myStreamReader.ReadToEnd(); info(content); }
Output:-
4 comments
comments"Great blog created by you. I read your blog, its best and useful information. You have done a great work. Super blogging and keep it up.php jobs in hyderabad.
Reply"
Excellent…Amazing…. I’m satisfied to find so many helpful information here within the put up,for latest php jobs in near me. we want work out extra strategies in this regard, thanks for sharing.
ReplyCan you help us in how can we parse the content elements?
ReplyHi Omari,
Replyyou can get XML element content using XML parser or else using XPath. please check below link.
https://msdn.microsoft.com/en-us/library/ms256086(v=vs.110).aspx
https://en.wikipedia.org/wiki/XPath
Thanks for comments.....