aspose file tools*
The moose likes XML and Related Technologies and the fly likes Adding properties file to xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Adding properties file to xml" Watch "Adding properties file to xml" New topic
Author

Adding properties file to xml

H. J. Yoshi
Greenhorn

Joined: Jul 21, 2006
Posts: 29
Hello

(i post in ages.)

I have defined an xsd using which i am doing the following -
- listing 'job schedules' [ these are spring batch jobs , defined in their own specific config xmls]
- each 'schedule' has a list of parameters inlcuding: cron string, a few file/ directory paths (relative), the job config xml path.

Now, yes, I could do this using spring framework quartz beans and have the "configLocation" or, spring context "property-placeholder" element set to read the properties file I need to read in order to resolve the filenames/ filepaths listed in each 'job schedule' element.

But, I am not using spring beans here at all. (I do think it is probably is a bad idea, but for some reason, that is how it is going to be)

So, every element is "string" as per this xsd. I am trying to find if there is any way I can import / refer to the properties file within these xml? by changing my own xsd and not using the spring /context/quartz schema.

However, I am using spring to load the context and have the "scheduler" kick off. So, I am able to load the config and jobs using XML files generated using this schema, but the relative paths get unresolved.

Any suggestion, pointer is most welcome.

Thank you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Adding properties file to xml