Hello all,
At this moment, I have an application that consumes an “elements empty XML file” and then we build the elements info and properties using php and we send.
The workflow is more or less like this:
We grab an XML called “infoDomain” then we put the information inside and then we send to the server.
So, the xml on this situation is quite “fixed”,the structure is there, it should be there, and that’s all.
But the issue arrives with the createDomain method.
The create domain cannot have that “fixed” xml structure, because, depending on several factors, the XML of createDomin should change (not much but change).
So my question is:
What can you suggest, in order to allow me to deal with this xnl necessary changes?
For info domain I have:
1 - infoXML FILE “clean”
2 - A infoMethod that interects with the XML file;
3 - A infoMethod that makes the bridge with the front-end.
I would like to keep, more or less the same estruture because, ONLY createDomain is different.
I have thought:
Should I create conditionals and build change the XML ?
Should I create an XML file for each of the different details?
For now, the create domain and is different rules, are based uppon the fact that we register a DOMAIN in a way or another, AND/OR the fact that we have two possible domains to deal within this application.
What if, in the future, we want to allow the createtion, not only of .pt a and .com.pt but also .net.pt, etc… etc… Each of those may have their own runes, hence, their one specific XML command.
So, according to this. Sorry I’m to tired to write any better,
Any thoughts, anything just a clue, a little tip, anything, I will be a happy person.
Thanks a lot in advance,
Márcio