tags:

views:

238

answers:

2

How to parser XML exactly XLIFF files and get the source content in PHP. how to get the source content of the xml file http://docs.oasis-open.org/xliff/v1.2/cs02/Sample%5FAlmostEverything%5F1.2%5Fstrict.xlf

A: 

In XQuery "//xliff" means any xliff element in the document. "/xliff" means from the root or current node.

David W
From root only. Current node is '.'
Jim Garrison
Jim's right. "./xliff" or "xliff" gets you children of the current node.
David W
A: 

//xliff finds all <xliff> tags at any depth of nesting within the document. /xliff finds them (it) only at the root level.

Jim Garrison