P
P
Petrushka2015-04-21 21:55:19
Android
Petrushka, 2015-04-21 21:55:19

Where can I find sites for parsing xml?

Good day, I'm studying parsing In general, I
understood the essence, but I got confused in some things
1) I can only parse ready-made xml sites made by someone? ( news.drweb.com/rss/get/?c=5&lng=ru) or I can somehow parse all the sites in a row, that is, for example, I found an XML site with matches, but the name of the league is not written there, and the name I can’t get the leagues in any way,
or let’s say there is a regular site, how can I get information from it?
Maybe I'm writing nonsense, sorry))

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sim3x, 2015-04-21
@sim3x

I can somehow parse all sites in a row
all
how can i get info from it?
find libraries for parsing html on obj-c/java and parsi

V
Viktor Vsk, 2015-04-21
@viktorvsk

HTML is also (a subset of) XML. True, at times, invalid. So sometimes you need to use error-ignoring parsers (often called DOM parsers, and that's what you'll see as libraries for parsing XML).
A DOM parser represents the data in a structure that can usually be accessed using CSS selectors or XPATH selectors. You can also transform XML into any desired form using XSLT.
So, the answer to the question: any site can be "parsed as XML"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question