xml to list

qlwik

Client
Регистрация
03.04.2013
Сообщения
207
Благодарностей
5
Баллы
18
Hi,
I want to put xml sitemap to list, for example if I have xml code:

Код:
<?xml version="1.0" encoding="UTF-8"?>
<urlset>
  <url>
    <loc>http://www.xxxxxx.com/home</loc>
  </url>
</urlset>
I use "Parsing XML" and XML to list, in Property I use urlset.url and in Subproperty I use loc and it is working fine, problem is when code is like this:

Код:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
  <url>
    <loc>http://www.xxxxxx.com/home</loc>
  </url>
</urlset>
then name of this item is :

Код:
{http://www.sitemaps.org/schemas/sitemap/0.9}urlset.{http://www.sitemaps.org/schemas/sitemap/0.9}url[0].{http://www.sitemaps.org/schemas/sitemap/0.9}loc
and then XML to list say: No such a name: url
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 267
Благодарностей
5 853
Баллы
113
I'm not sure how you parse it exactly. Please give an example.
 

qlwik

Client
Регистрация
03.04.2013
Сообщения
207
Благодарностей
5
Баллы
18
Ok I just removed
Код:
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"
from
Код:
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)