External Data XPath demo

From Discourse DB
Revision as of 16:45, June 22, 2012 by Yaron Koren (talk | contribs) (Demo page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The following is a demonstration of the "use xpath" feature of the External Data extension, to get specific values from the XML using XPath notation.

Data is retrieved from this sample XML file, using the following call:

{{#get_web_data:url=http://producthelp.sdl.com/SDL%20Trados%20Studio/client_en/sample.xml
|format=xml
|use xpath
|data=salutation=/letter/salutation,maxlength=/letter/title[2]/@maxlength,address=/letter/address[@translate='no'],url=/letter/weblink}}


Salutation: Dear Daniel,

Max length: 40

Address: Smithtown

URL: http://www.smith-company-ltd.com