• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question: what's "generate dynamic output of XML"?

 
lydia westland
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am doing some Mock test, and so confused about the static generation of XML and dynamic generation of XML. what's the difference between them? is the dynamic generation is "Just In Time generation"? when shall we use static XML and when dynamic XML? thanks a lot!
 
John Wetherbie
Rancher
Posts: 1449
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dynamic generation could be considered "JIT" in the sense that you are creating the XML on the fly. This would be the case when what you want to create depends on input, date, time, etc.
Static is just that. You have some XML that you just grab (out of a file, doc, etc) and use.
Any experts out there who can provide a better description and/or corrections to what I've typed above?
 
lydia westland
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you, John.
As for "JIT", is the structure of output XML changing, or the content of output XML changing, depends on the input? The output XML may have different nodeset(element, attribute, etc), or just have different contect in each element. Do both of these two situation count as "JIT"?
For the static one, does it mean that as long as we give them fixed input, we will get fixed output?
Thank you very much
 
John Wetherbie
Rancher
Posts: 1449
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For dynamic I could see the content changing for sure. The structure could also change because you might select to output a different structure.
Static content and structure would not change. It might not be displayed because of a certain input but the input would not affect the XML itself.
Hope that helps.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic