Iso3166 1alpha 2codeelement draw the tree iso3166

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: uot;USD" rate="1.5872"/> <Cube currency="JPY" rate="162.74"/> <Cube currency="BGN" rate="1.9558"/> <Cube currency="CZK" rate="24.975"/> </Cube> </Cube> </Envelope> DRAW THE TREE FOR THIS DOCUMENT /Envelope/Sender/name ... ... 1. The first loca8on step iden8fies the root node, <Envelope>. 2. The next loca8on step finds the <Sender> child of <Envelope>. 3. The third loca8on step iden8fies <Sender>'s child called <name>. Envelope 1 /Envelope 2 /Sender subject Sender 3 /name Referenc... name Europea... Cube Cube Cube Cube Cube Cube Cube /Envelope/Cube/Cube 1 2 3 Envelope /Envelope /Cube subject Sender /Cube Referenc... name Europea... Cube Cube Cube ... Cube Cube Cube ... This XPath expression locates two sibling <Cube> nodes. Cube //Cube[@currency = "JPY"] The expression: //Cube matches all Cube nodes found anywhere in the document Envelope subject Sender Referenc... name Europea... Cube The predicate [@currency="JPY"] filters the matches to those elements with a currency arribute value of “JPY” Cube Cube Cube Cube Cube Cube Cube Cube Cube Cube currency= "USD" currency = "JPY" currency = "BGN" currency = "CZK" currency = "USD" currency = "JPY" currency = "BGN" currency = "CZK" Your Turn ISO Country Abbrevia8ons <ISO_3166- 1_List_en xml:lang="en"> <ISO_3166- 1_Entry> <ISO_3166- 1_Country_name>AFGHANISTAN </ISO_3166- 1_C...
View Full Document

This document was uploaded on 02/16/2014 for the course STATISTICS 3026 at Columbia.

Ask a homework question - tutors are online