User:Alex skene/scratchpad/more ext: Difference between revisions
From FOIwiki
Jump to navigationJump to search
Alex skene (talk | contribs) (Created page with "== try xml == * http://www.legislation.gov.uk/ukpga/2000/36/section/11/data.xml {{#get_web_data: url=http://www.legislation.gov.uk/ukpga/2000/36/section/11/data.xml |format=...") |
Alex skene (talk | contribs) |
||
Line 7: | Line 7: | ||
|format=xml | |format=xml | ||
|use xpath | |use xpath | ||
|data=Text1=/ | |data=Text1=/children('http://www.legislation.gov.uk/namespaces/legislation')//text | ||
}} | |||
{{#for_external_table:<nowiki/> | {{#for_external_table:<nowiki/> | ||
* {{{ | *X {{{Text1}}} | ||
}} | }} | ||
* the legislation xml doesn't meet the SMW extension's format v well, so won't e able format properly | * the legislation xml doesn't meet the SMW extension's format v well, so won't e able format properly |
Revision as of 01:50, 18 October 2012
try xml
{{#get_web_data: url=http://www.legislation.gov.uk/ukpga/2000/36/section/11/data.xml |format=xml |use xpath |data=Text1=/children('http://www.legislation.gov.uk/namespaces/legislation')//text }}
{{#for_external_table:
- X {{{Text1}}}
}}
- the legislation xml doesn't meet the SMW extension's format v well, so won't e able format properly