cancel
Showing results for 
Search instead for 
Did you mean: 

How can I read a configuration xml file using nuxeo api

geekonspace
Star Contributor
Star Contributor

I have a xml file and want to know how to read it using your api. The file is in my plugin folder

1 ACCEPTED ANSWER

Florent_Guillau
World-Class Innovator
World-Class Innovator

You should put it in the config/ directory.

Then you can use Environment.getConfig() to get that path from your code. Then use standard XML file reading mechanisms.

Or use URL url = context.getRuntimeContext().getResource("config/your-file.xml") and read the XML from that URL.

View answer in original post

2 REPLIES 2

Florent_Guillau
World-Class Innovator
World-Class Innovator

You should put it in the config/ directory.

Then you can use Environment.getConfig() to get that path from your code. Then use standard XML file reading mechanisms.

Or use URL url = context.getRuntimeContext().getResource("config/your-file.xml") and read the XML from that URL.

thanks!!!!

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.