FIXME: The OpmlStore works in Firefox but does not yet work in IE.
Test OpmlStore in a TreeV3
geography.opml
Africa {type: "continent"}
Asia {type: "continent"}
Mongolia {type: "country"}
Australia {type: "continent", population: "21 million"}
Australia {type: "country", population: "21 million"}
Europe {type: "continent"}
Germany {type: "country"}
North America {type: "continent"}
Mexico {type: "country", population: "108 million", area: "1,972,550 sq km"}
Mexico City {type: "city", population: "19 million", timezone: "-6 UTC"}
Guadalajara {type: "city", population: "4 million", timezone: "-6 UTC"}
Canada {type: "country", population: "33 million", area: "9,984,670 sq km"}
Ottawa {type: "city", population: "0.9 million", timezone: "-5 UTC"}
Toronto {type: "city", population: "2.5 million", timezone: "-5 UTC"}
United States of America {type: "country"}
South America {type: "continent"}
Brazil {type: "country", population: "186 million"}
Argentina {type: "country", population: "40 million"}
dojo.debug output
DEBUG: EXPERIMENTAL: dojo.data.core.Result -- Not yet ready for use. APIs subject to change without notice.
DEBUG: EXPERIMENTAL: dojo.data.core.Read -- Not yet ready for use. APIs subject to change without notice.
DEBUG: EXPERIMENTAL: dojo.data.OpmlStore -- Not yet ready for use. APIs subject to change without notice.
DEBUG: 6 items returned by store.find()
DEBUG: ....Item: Africa (3 children) (3 attributes)
DEBUG: ........text: "Africa"
DEBUG: ........type: "continent"
DEBUG: ........children:
DEBUG: ........Item: Egypt (0 children) (2 attributes)
DEBUG: ............text: "Egypt"
DEBUG: ............type: "country"
DEBUG: ........Item: Kenya (2 children) (3 attributes)
DEBUG: ............text: "Kenya"
DEBUG: ............type: "country"
DEBUG: ............children:
DEBUG: ............Item: Nairobi (0 children) (2 attributes)
DEBUG: ................text: "Nairobi"
DEBUG: ................type: "city"
DEBUG: ............Item: Mombasa (0 children) (2 attributes)
DEBUG: ................text: "Mombasa"
DEBUG: ................type: "city"
DEBUG: ........Item: Sudan (1 children) (3 attributes)
DEBUG: ............text: "Sudan"
DEBUG: ............type: "country"
DEBUG: ............children:
DEBUG: ............Item: Khartoum (0 children) (2 attributes)
DEBUG: ................text: "Khartoum"
DEBUG: ................type: "city"
DEBUG: ....Item: Asia (4 children) (3 attributes)
DEBUG: ........text: "Asia"
DEBUG: ........type: "continent"
DEBUG: ........children:
DEBUG: ........Item: China (0 children) (2 attributes)
DEBUG: ............text: "China"
DEBUG: ............type: "country"
DEBUG: ........Item: India (0 children) (2 attributes)
DEBUG: ............text: "India"
DEBUG: ............type: "country"
DEBUG: ........Item: Russia (0 children) (2 attributes)
DEBUG: ............text: "Russia"
DEBUG: ............type: "country"
DEBUG: ........Item: Mongolia (0 children) (2 attributes)
DEBUG: ............text: "Mongolia"
DEBUG: ............type: "country"
DEBUG: ....Item: Australia (1 children) (4 attributes)
DEBUG: ........text: "Australia"
DEBUG: ........type: "continent"
DEBUG: ........population: "21 million"
DEBUG: ........children:
DEBUG: ........Item: Australia (0 children) (3 attributes)
DEBUG: ............text: "Australia"
DEBUG: ............type: "country"
DEBUG: ............population: "21 million"
DEBUG: ....Item: Europe (4 children) (3 attributes)
DEBUG: ........text: "Europe"
DEBUG: ........type: "continent"
DEBUG: ........children:
DEBUG: ........Item: Germany (0 children) (2 attributes)
DEBUG: ............text: "Germany"
DEBUG: ............type: "country"
DEBUG: ........Item: France (0 children) (2 attributes)
DEBUG: ............text: "France"
DEBUG: ............type: "country"
DEBUG: ........Item: Spain (0 children) (2 attributes)
DEBUG: ............text: "Spain"
DEBUG: ............type: "country"
DEBUG: ........Item: Italy (0 children) (2 attributes)
DEBUG: ............text: "Italy"
DEBUG: ............type: "country"
DEBUG: ....Item: North America (3 children) (3 attributes)
DEBUG: ........text: "North America"
DEBUG: ........type: "continent"
DEBUG: ........children:
DEBUG: ........Item: Mexico (2 children) (5 attributes)
DEBUG: ............text: "Mexico"
DEBUG: ............type: "country"
DEBUG: ............population: "108 million"
DEBUG: ............area: "1,972,550 sq km"
DEBUG: ............children:
DEBUG: ............Item: Mexico City (0 children) (4 attributes)
DEBUG: ................text: "Mexico City"
DEBUG: ................type: "city"
DEBUG: ................population: "19 million"
DEBUG: ................timezone: "-6 UTC"
DEBUG: ............Item: Guadalajara (0 children) (4 attributes)
DEBUG: ................text: "Guadalajara"
DEBUG: ................type: "city"
DEBUG: ................population: "4 million"
DEBUG: ................timezone: "-6 UTC"
DEBUG: ........Item: Canada (2 children) (5 attributes)
DEBUG: ............text: "Canada"
DEBUG: ............type: "country"
DEBUG: ............population: "33 million"
DEBUG: ............area: "9,984,670 sq km"
DEBUG: ............children:
DEBUG: ............Item: Ottawa (0 children) (4 attributes)
DEBUG: ................text: "Ottawa"
DEBUG: ................type: "city"
DEBUG: ................population: "0.9 million"
DEBUG: ................timezone: "-5 UTC"
DEBUG: ............Item: Toronto (0 children) (4 attributes)
DEBUG: ................text: "Toronto"
DEBUG: ................type: "city"
DEBUG: ................population: "2.5 million"
DEBUG: ................timezone: "-5 UTC"
DEBUG: ........Item: United States of America (0 children) (2 attributes)
DEBUG: ............text: "United States of America"
DEBUG: ............type: "country"
DEBUG: ....Item: South America (2 children) (3 attributes)
DEBUG: ........text: "South America"
DEBUG: ........type: "continent"
DEBUG: ........children:
DEBUG: ........Item: Brazil (0 children) (3 attributes)
DEBUG: ............text: "Brazil"
DEBUG: ............type: "country"
DEBUG: ............population: "186 million"
DEBUG: ........Item: Argentina (0 children) (3 attributes)
DEBUG: ............text: "Argentina"
DEBUG: ............type: "country"
DEBUG: ............population: "40 million"
DEBUG: If you see this message, everything worked!