Some servers serve <D:resourcetype></D:resourcetype> rather than <D:resourcetype/>. So handle this case when deciding if an item is not a collection.
Some servers serve <D:resourcetype></D:resourcetype> rather than <D:resourcetype/>. So handle this case when deciding if an item is not a collection.