I am having doubt. I do understand that DOM can help to create or manipulate HTML tags . So Is it possible for DOM to create JSTL tags or struts tag??? If yes, how and please explain with example (as I understand with example better.)
For example :
in HTML Body
in JS file
now for struts tag, is it possible:
how will it look like in js and in <div>
Thanks for your time reading and answering this.. philip
You should be able to use a DOM representation of any markup that obeys strict XML rules. Typical HTML is so sloppy that XHTML is a respected but seldom used standard.
However, in my opinion, building documents with DOM is a real pain compared to other approaches. You can write code having a structure based on the DOM hierarchy and it will be faster and easier to understand.
Strictly speaking, You could use DOM to churn out XHTML (which modern browsers should have no problem with). So the answer is you can.
However what Bill says is that this is task with a degree of difficulty and there might be other approaches that may be easier. From what I understood Bill is suggesting a customer built object hierarchy representing and XML document?
Ping & DNS - updated with new look and Ping home screen widget