Not getting File path from XML

1
Hi All,              I have XML file In that there is path of another XML file I want to access that file path , I tried  java action in that get a path of resource folder but in that but It did not work. so what can I do for that there is another way for that.          In following img locationRef  is path I WANT  to access that path .  
asked
2 answers
1

Parsing the XML with an XPATH parser is the easiest way.

 

A more tedious way would be to import the XML schema into a domain model and then retrieve the attribute containing the file path.

 

Import XML Documents | Mendix Documentation

 

answered
1

Do those files exist in your resources file? If they do you can use GetFileContentsFromResource Java Action from the Community Commons module in the Marketplace to get the file into a FileDocument. Once it’s in a FileDocument you can use it in an Import from XML action, or however you want to handle the document.

Hope this helps.

answered