|
Re: Thought on future of XMLC: msg#00059java.enhydra.xmlc
This is brainstorming session. I want to hear the concern of the community before decide on a particular design and implementation. I'm slightly confused with the JXPath approach. Would we still be I probably didn't express this clearly in my previous mail. A Java wrapper for the document object will still exists for the DOM object for the document. To be more precise, no document specific wrapper classes will be generated for a particular document. The wrapper will be generic but is necessary to hold meta data for the documents. The XPath will be run on the DOM object and the wrapper will still provide access to the DOM object. Basically, the wrapper object will be org.enhydra.xml.xmlc.XMLObject or org.enhydra.xml.xmlc.html.HTMLObject which the current document specific wrapper derived from. What's going to be missing from the wrapper is the convenient methods for direct element and text access, e.g. getElementFoo() and setTextBar(). If we are loading up the document at runtime, wouldn't this be a The loading/parsing will only occur when the document is first request (and after updated if reloading is enable). The loading time is probably going to be a bit slower than the current class loading since it will do parsing and tree walking to process the document. However, this performance penalty is onetime. However, this Well... I thought about this one. The current class generation should probably be kept for this legacy support. The most feasible implementation will to have two in parallel. However, I want to eventually move away from the dependency on the generated classes. If the getElement/setText will still be needed in the future, it can probably be emulated using Proxy. BTW, would these types of changes mean that we are no longer dependent Well... I wish so but moving XMLC toward this direction still won't get rid of the dependency on the particular version of Xerces. That's an issue I still don't have time to address yet. :( David
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re[2]: Thought on future of XMLC, Jacob Kjome |
|---|---|
| Next by Date: | Re: Thought on future of XMLC, David Li |
| Previous by Thread: | Re: Thought on future of XMLC, Jacob Kjome |
| Next by Thread: | Re: Thought on future of XMLC, Mark Diekhans |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |