Skip to main content
mr_fluffy
Participating Frequently
January 27, 2016
Answered

How to open XML file to string in a LightRoom plugin?

  • January 27, 2016
  • 1 reply
  • 905 views

I need to:

1) Open a XML file to a Lightroom's String

2) Parse some data from It with LrXml

3) Show to the user

I Don't have any ideas to do the first point, please help me.

This topic has been closed for replies.
Correct answer johnrellis

Use LrFileutils.readFile().  If you need finer control over file i/o, you can use Lua's builtin file library calls (io.open, file:read, etc.) -- see a standard Lua reference for details.

1 reply

johnrellis
johnrellisCorrect answer
Legend
January 27, 2016

Use LrFileutils.readFile().  If you need finer control over file i/o, you can use Lua's builtin file library calls (io.open, file:read, etc.) -- see a standard Lua reference for details.