From: shady on 10 May 2010 01:42 Hi, I'm trying to read about what TclDOM or DOM in general can do, or look for examples of implementation. But, honestly I can't find anything really informative. All what I read on different websites is that DOM is used to read XML as a tree structure. But, that is not enough for me to use it. How will this be of benefit? Is there any helpful website or tutorial that can explain how to use it and when it is useful. I'm afraid to dump it and find out later that it could be of help to my application!! Thanks, Shady
From: Arndt Roger Schneider on 10 May 2010 08:15 shady schrieb: >Hi, > >I'm trying to read about what TclDOM or DOM in general can do, or look >for examples of implementation. But, honestly I can't find anything >really informative. > >All what I read on different websites is that DOM is used to read XML >as a tree structure. But, that is not enough for me to use it. How >will this be of benefit? > >Is there any helpful website or tutorial that can explain how to use >it and when it is useful. I'm afraid to dump it and find out later >that it could be of help to my application!! > >Thanks, >Shady > > TclDOM: There is a book(~1999/2000) from Steve Ball about TclDOM, XML. tDOM: See the Documentation (doc sub-directory) --I've used the tDOM paper from the 1st european tcl conference to start with tDOM. In short: DOM Document Object Model. An hierarchical representation of an xml document as "objects". DOM-tree implementations have standard query and access "methods" to retrieve and manipulate DOM-tree objects and properties, the mechanism follows the xpath convention. Also look into source code utilizing DOM-trees... .... a tcl module managing the DOM access for reading and writing SVG via tDOM: http://jeszra.sourceforge.net/api/ch08.html -roger
From: Steve Ball on 10 May 2010 19:29 Hi, The first place to start is the TclXML website: http://tclxml.sf.net/tcldom.html There you will find a link to the reference manual. Also, there is a page on the Tcl Wiki, http://wiki.tcl.tk/1407, with links to some examples and tutorials. If you would like to suggest more tutorial topics, let me know. Finally, in the TclXML distribution there is an example scripts subdirectory. This contains some small (and not-so-small) Tcl scripts that can help get you started. HTHs, Steve Ball On May 10, 3:42 pm, shady <shady.for...(a)gmail.com> wrote: > Hi, > > I'm trying to read about what TclDOM or DOM in general can do, or look > for examples of implementation. But, honestly I can't find anything > really informative. > > All what I read on different websites is that DOM is used to read XML > as a tree structure. But, that is not enough for me to use it. How > will this be of benefit? > > Is there any helpful website or tutorial that can explain how to use > it and when it is useful. I'm afraid to dump it and find out later > that it could be of help to my application!! > > Thanks, > Shady
From: Larry W. Virden on 11 May 2010 06:51 On May 10, 1:42 am, shady <shady.for...(a)gmail.com> wrote: > > Is there any helpful website or tutorial that can explain how to use > it and when it is useful. I'm afraid to dump it and find out later > that it could be of help to my application!! > http://www.ibm.com/developerworks/xml/library/x-domjava/ talks about DOM in terms of a java module but the concepts should be similar. http://www.ibm.com/developerworks/webservices/library/ws-xtcl.html talks about using tcl code to process xml via tclxml. http://wiki.tcl.tk/8984 is a page on the wiki for a tutorial about tDOM. http://wiki.tcl.tk/1407 talks about tcldom specifically and points to some tutorials. just use your favorte web search engine and plug in some terms associated with what you are wanting to do to find some tutorials, reference guides, etc. Or, if you can't find what you want, ask specific questions in terms of small coherent examples here or on appropriate http://wiki.tcl.tk/ pages .
From: Aric Bills on 11 May 2010 15:34 On May 9, 11:42 pm, shady <shady.for...(a)gmail.com> wrote: > Hi, > > I'm trying to read about what TclDOM or DOM in general can do, or look > for examples of implementation. But, honestly I can't find anything > really informative. > > All what I read on different websites is that DOM is used to read XML > as a tree structure. But, that is not enough for me to use it. How > will this be of benefit? > > Is there any helpful website or tutorial that can explain how to use > it and when it is useful. I'm afraid to dump it and find out later > that it could be of help to my application!! > > Thanks, > Shady DOM represents entire XML documents (or document fragments) in memory in a structured format. There are both pros and cons to that; the biggest downside is that, depending on the size of your document, it can consume a lot of memory to represent the whole thing as a DOM tree. The big advantage is that you can query and manipulate anything anywhere in the tree in an elegant, straightforward way. In your research on DOM, don't forget to look into XPath. Also, while you're looking at TclDOM have a look at tDOM too. If you can tell us a bit about your application and your XML needs, people will be able to give you more specific advice about whether DOM is right for you and what issues to consider in making your decision.
|
Pages: 1 Prev: Announcement - brick engine v5! Next: EuroTcl 2010: Reminder |