Jump to content

XML/XPath: Difference between revisions

m
Line 329:
 
=={{header|CoffeeScript}}==
<div class='mw-collapsible mw-collapsed'>
<lang coffeescript>
doc = new DOMParser().parseFromString '
Line 359:
</inventory>
', 'text/xml'
</divlang>
</div>
<nowiki>#</nowiki> "doc" is the xml as a Document object. Click expand to see parsing code ⇒
 
<lang coffeescript>
# Retrieve the first "item" element
doc.evaluate('//item', doc, {}, 7, {}).snapshotItem 0
Line 373 ⟶ 377:
names.snapshotItem i
</lang>
</div>
 
=={{header|ColdFusion}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.