• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Data Processing

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I do not know if this is the right sub-forum, by the way.
I explain my situation: through XPath Expression (define in an external XML file which I read using JAXB) I read data from a second XML file (a datasource, for example).

Then, inside my Java code, according to which Node name (org.w3c.node), or Nodelist, or attribute name, or something else have been selected from the datasource I make some operations on them an display them on the screen.

As you can understand, inside the Java code there are direct references to the names of the Node, attributes and so on from the datasource.
What I would like to do is to remove these "hard coded" part from the Java code and allow make the processing using another external file (XML, XSLT, or what else).

This means that anyone using my software can define its own data processing defined externally from the Java source code on its data source XML file without changing the Java source code.

Hope I explained good...otherwise, tell me! ;)

Thanks
Marco
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!