Hi there,
First time posting here - wondering if anyone could lend a hand!
I'm making an import/export of xml - I have the import of xml sorted I'm just trying to finish off the export.
My export class is called XmlWriter.java
Inside the class I have an updateFile method to update an xml file as such:
public void updateFile(Environment environment,Document doc) { // code }
I then in my main method have
public static void main(String argv[]){ //declare new object of class XmlWriter xmlWriter = new XmlWriter(); //test testUpdate method // xmlWriter.testUpdate(); Environment environment = ; Document doc = ; //call method to update xmlWriter.updateFile(environment,doc); //call method to export }
I don't know what to make my variables equal to - eclipse keeps trying to use null but obviously that won't work. The Environment is another class that just contains getters and setters for the 3 different databases (that are in the xml file) and the getter/setter for the environment ID (also in xml file). Any help would be appreciated as I'm confused as to what to set the variables to :S