marouanemeft
Programmer
Hi,
I have 4 or 5 classes that are related to each other this way:
Installation class has domains
Domain class has users
User class has objects ..
I would like to write a method that will write an xml representation of this containership to a file.
right now I have a writeXML method that returns a string for each object. and the writeXML of the top classes (like Installation) just call the writeXML of the subclasses (like User).
Is there a better way to do this?
Thank you all in advance.
I have 4 or 5 classes that are related to each other this way:
Installation class has domains
Domain class has users
User class has objects ..
I would like to write a method that will write an xml representation of this containership to a file.
right now I have a writeXML method that returns a string for each object. and the writeXML of the top classes (like Installation) just call the writeXML of the subclasses (like User).
Is there a better way to do this?
Thank you all in advance.