Hello
need tips on processing feed Yandex Photos
for example, there is such a node

<entry> <id>urn:yandex:fotki:автор:photo:700417</id> <author> <name>styleroom</name> <f:uid>13223519</f:uid> </author> <title>Название</title> <summary>описание</summary> <link href="http://path_to/photo/700417/" rel="self" /> <link href="http://path_to/photo/700417/" rel="edit" /> <link href="http://path_to/view/700417/" rel="alternate" /> <link href="http://path_to_orig" rel="edit-media" /> <link href="http://path_to/album/156904/" rel="album" /> <published>2016-05-27T05:45:11Z</published> <app:edited>2016-05-28T18:49:35Z</app:edited> <updated>2016-05-28T18:49:35Z</updated> <f:access value="public" /> <f:xxx value="false" /> <f:hide_original value="false" /> <f:disable_comments value="false" /> <f:img height="75" href="http://path_to_XXS" size="XXS" width="75" /> <f:img height="800" href="http://path_to_XL" size="XL" width="538" /> <f:img height="300" href="http://path_to_M" size="M" width="202" /> <f:img height="500" href="http://path_to_L" size="L" width="336" /> <f:img height="50" href="http://path_to_XXXS" size="XXXS" width="50" /> <f:img height="150" href="http://path_to_S" size="S" width="101" /> <f:img height="100" href="http://path_to_XS" size="XS" width="67" /> <f:img bytesize="149433" height="960" href="http://path_to_orig" size="orig" width="646" /> <f:img height="960" href="http://path_to_XXL" size="XXL" width="646" /> <category scheme="http://path_to/tags/" term="бабушка" /> <category scheme="http://path_to/tags/" term="внучка" /> <category scheme="http://path_to/tags/" term="грабли" /> <content src="http://path_to_orig" type="image/*" /> </entry> 

How to access node attributes and node content correctly?
and how to deal with a f: img node?

  • one
    Specify the language and the technology you want. You can freeze and get through regexp. You can xsd request. On c # one, on js another. Give may code snippet where you got the data in some variable. - nick_n_a
  • You can also get it using serialization. There are at least 10 ways to get the right answer, if not much more. - nick_n_a
  • @nick_n_a language = php and as far as I understand the reader goes through all the nodes in turn without taking into account nesting each other - buyboy
  • in with # there is also an XmlReader, not an XMLReader is true, but at first I thought it was a #, the question should be clear all the same. - nick_n_a

0