User:Alex skene/scratchpad/ext xml namespace: Difference between revisions

From FOIwiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 8: Line 8:
|format=xml
|format=xml
|use xpath
|use xpath
|data=Text1=//*[local-name() = 'ukm:AffectingTitle' and namespace-uri() = 'http://www.legislation.gov.uk/namespaces/metadata']
|data=Text1=/*[local-name() = 'Legislation'  and namespace-uri() = 'http://www.legislation.gov.uk/namespaces/legislation']/*[local-name() = 'Metadata' and namespace-uri() = 'http://www.legislation.gov.uk/namespaces/metadata']/*[local-name() = 'PrimaryMetadata' and namespace-uri() = 'http://www.legislation.gov.uk/namespaces/metadata']/*[local-name() = 'UnappliedEffects' and namespace-uri() = 'http://www.legislation.gov.uk/namespaces/metadata']/*[local-name() = 'AffectingTitle' and namespace-uri() = 'http://www.legislation.gov.uk/namespaces/metadata']
|}}
|}}



Revision as of 16:50, 24 November 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=/*[local-name() = 'Legislation' and namespace-uri() = 'http://www.legislation.gov.uk/namespaces/legislation']/*[local-name() = 'Metadata' and namespace-uri() = 'http://www.legislation.gov.uk/namespaces/metadata']/*[local-name() = 'PrimaryMetadata' and namespace-uri() = 'http://www.legislation.gov.uk/namespaces/metadata']/*[local-name() = 'UnappliedEffects' and namespace-uri() = 'http://www.legislation.gov.uk/namespaces/metadata']/*[local-name() = 'AffectingTitle' and namespace-uri() = 'http://www.legislation.gov.uk/namespaces/metadata'] |}}

{{#for_external_table:

  • {{{Text1}}} X

}}