Getting all file nodes from a document

Issue #5 resolved
YvesS created an issue

Request for a way to get all file nodes from a document:

From Martin:

I am trying to find a good way to iterate over all file elements of an XLIFFDocument object. However, there is currently (as of v1.1.) no iterable similar to the List provided by getUnits(). I also noticed that the File elements don't have a class representation similar to the Unit class in net.sf.okapi.lib.xliff2.core.

So, I am wondering what the reason for this missing class / method is? Would it make sense to introduce them or is there currentty a simple way to iterate over the files of an XLIFFDocument? Thanks.

Comments (3)

  1. Log in to comment