Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Document Object Model for REBOL

 [1/10] from: Christophe:Coussement:mil:be at: 19-Jan-2004 13:14


Hi list! We need a set of XML-access functions to produce, view, edit complex XML-documents from our project and from external sources. Did any one already implement a working set of functions for XML access ? Based on http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001 ? Or other libraries/recommendations ? TIA ! ==xtof

 [2/10] from: inetw3:mindspring at: 19-Jan-2004 9:53


Hi Christopher, There is one function built on top of the parse-xml function called Rebol-to-xml, or something like that. It's located at its' own web site and it creates an object-tree in order to get to the xmlnodes. It's well written but I find it cumbersome writing long objects paths to get to one little piece of text to change. I'm in no way partial to %Quickparser.r(my function for xml), especially when it's no where finished, but its simpler, faster, and easy to use. It's in the www.rebol.org library. The XMLdom part is still a work in progress based off of the MSXMLparser. I'll be updating it often, but everything will be W3C compliant as close as possible. More function names will be added slowly but surely.

 [3/10] from: greggirwin:mindspring at: 19-Jan-2004 11:00


Hi Christophe, CC> We need a set of XML-access functions to produce, view, edit CC> complex XML-documents from our project and from external sources. In addition to quickparser.r, the library contains: http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=rblxelparser.r Gavin Mackenzie's was the most complete I knew of, but I'm not sure where you can get it. I don't seem to have a link handy here. -- Gregg

 [4/10] from: jason::cunliffe::verizon::net at: 19-Jan-2004 13:20


It might be helpful to study Nicolas Fournier's jabber client 'Maoww' http://www.rebolfrance.net/projets/concours/maoww.zip Combines simple hard-coded xml message strings with generic xml-parsing functions for event calls. It's a complete working xml application complete with nice Rebol/View interface - Jason

 [5/10] from: gchiu:compkarori at: 24-Jan-2004 11:51


On Mon, 19 Jan 2004 11:00:42 -0700 Gregg Irwin <[greggirwin--mindspring--com]> wrote:
>Gavin Mackenzie's was the most complete I knew of, but >I'm not sure >where you can get it. I don't seem to have a link handy >here.
Gavin's site has disappeared, but his code is included in the xmlrpc distro at http://earl.strain.at/space/rebXR -- Graham Chiu http://www.compkarori.com/cerebrus/<

 [6/10] from: Christophe:Coussement:mil:be at: 20-Jan-2004 11:05


Hi Jason, Daniel, Graham, Gregg Thx to all for the references. I will study this material, and see which part is the best fit for our needs ;) CU ! =christophe

 [7/10] from: cybarite:sympatico:ca at: 20-Jan-2004 2:18


I think you should have a look at the updated ML dialect from Andrew (Andrew J Martin) Andrew has posted on this list several times. The trouble that I have had with it: * it is too subtle for me to realize how slick it is. * I needed more examples of how to use it than are in the base script.

 [8/10] from: AJMartin:orcon at: 24-Jan-2004 11:51


Mike wrote"
> * I needed more examples of how to use [ML] than are in the base script.
Give me an idea of what you want and I'll show you how to use it. :) -- Andrew J Martin ICQ: 26227169 http://www.rebol.it/Valley/ http://valley.orcon.net.nz/ http://Valley.150m.com/

 [9/10] from: AJMartin:orcon at: 24-Jan-2004 11:51


Christophe wrote:
> We need a set of XML-access functions to produce, view, edit complex
XML-documents from our project and from external sources.
> Did any one already implement a working set of functions for XML access ?
Based on http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001 ?
> Or other libraries/recommendations ?
I've found that a short C# program that interprets a XSL stylesheet running on Windows .NET works well for tearing apart a .XML file into Rebol values. Of course, you'll need Windows and .NET installed. :-/ -- Andrew J Martin Using the best tool for the job... ICQ: 26227169 http://www.rebol.it/Valley/ http://valley.orcon.net.nz/ http://Valley.150m.com/

 [10/10] from: Christophe:Coussement:mil:be at: 22-Jan-2004 9:03


Thanks Andrew and Cybarite! Andrew: unfortunately (or fortunately ) we do not use .NET, so we can not possibly try your suggestion :/ Anyway, I will study now your ML dialect I found on .org... Looks great for so far I can understand it ;) CU! ==christophe