Forums

Discuss all things Remember The Milk.

menu

xpath against RTM atom does not yield results

zielot says:
Given the Atom xml format of
<?xml version="1.0" encoding="UTF-8"?>
2015-12-05T06:02:29ZBob's Billsrememberthemilk.comtag:rememberthemilk.com,1999:tasks-zielot-11234234Remember The MilkJustin2015-11-07T06:02:45Ztag:rememberthemilk.com,1999:tasks-zielot-12435403.task-46152356821.40 - Netflix

Due:
Sat 7 Nov 15


Priority:
none


Time estimate:
none


Tags:
none


Location:
none


Postponed:
never




the xpath //span[class='rtm_due_value'] should return Sat 7 Nov 15 but it does not because of the namespace. I am trying to get this using the XML import function in google sheets so registering a namespace is not an option. Any chance you could change the atom format to bind the namespace? Right now I will be stuck doing something like this:
/*[local-name()='root']/*[local-name()='parent' and @attribute='A'] and it is problematic at best
Posted at 7:27pm on December 5, 2015
zielot says:
The xml of my sample was parsed by the blog ... useless! Ah well.
Posted 8 years ago
zielot says:
I figured it out::
title = "/*//*[local-name()='entry']/*[local-name()='title']"
due date = "/*//*[local-name()='span' and @class='rtm_due_value']"
Posted 8 years ago
This topic has now been closed automatically due to a lack of responses in the past 90 days.