Answer the question
In order to leave comments, you need to log in
How to parse html page and push results into xml file?
Hello, I urgently need help with C #, I need to parse the html page and push the results into an xml file.
You need to parse this page . And you need to push the data into xml of the following sample:
<ost ostan="название остановки">
<vrem chas="час" min="минуты через пробел"></vrem>
</ost>
Answer the question
In order to leave comments, you need to log in
What exactly is the problem? Lots of similar information on the internet.
Use the WebClient or HttpWebRequest + HttpWebResponse classes to get the page itself. After that, using standard functions for working with strings or regular expressions, parse it (the page) into parts and use Xml classes to write information to your file.
Here, for example, is an article on the topic habrahabr.ru/sandbox/44238 Habrahabr.ru/post/112325 may
also come in handy
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question