Check obj type using xml_url

Now categories without children can be read rightly