Getting all file nodes from a document
Issue #5
resolved
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)
-
reporter -
reporter - changed status to resolved
This has been ported to dev too.
-
reporter -
assigned issue to
-
assigned issue to
- Log in to comment
Done in master from Martin's contribution. Need to port to dev for 1.2