r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[XML] xml related conversations

Maxim
12-Apr-2006
[383x5]
my own  when I started the project I did not have many days to "get 
on with it" and for various reasons all the tools I tried didn't 
properly load the specification I was trying to load.
but there where some errors in the datafile itself, in the begining.
it had to do with http dowloading of the chunks...
my tool currenctly loads 1MB of xml tags in under a second.  its 
almost as fast as load/markup.
yet builds a nested block of blocks much like RebXML.
Pekr
12-Apr-2006
[388]
does it work SAX way or DOM way? I mean - load first, then parse, 
or parse while reading way?
Maxim
12-Apr-2006
[389x2]
it does all in one shot.  I read through the string once and have 
a nifty recursion with tail handling.
I want to try out with rebcode one day.  it would probably go about 
10 times faster or more.
Pekr
12-Apr-2006
[391]
hmm, I think that our problem is not lack of speed, but lack of fully 
compliant xml parser at first....
Maxim
12-Apr-2006
[392x2]
yep.
reading the xml spec... its no wonder.
Pekr
12-Apr-2006
[394]
no wonder what?
Rebolek
12-Apr-2006
[395]
pekr: no wonder there's still no fully compliant xml parser
[unknown: 9]
12-Apr-2006
[396]
my god reading the w3c spec for XML is insane.
 LOL
Allen
12-Apr-2006
[397]
I always thought the c in W3c meant committee not consortium.  ;-)
Geomol
13-Apr-2006
[398]
Maxim yes, RebXML can handle namespace tags and unicode.
Maxim
13-Apr-2006
[399]
Geomol,  you might just have made yourself a new user :-)  I'll try 
to stress-test RebXML next week, gauging speed, features and stability.
Maxim
20-Apr-2006
[400]
anyone know if any XML Schema integration has been done in REBOL?
[unknown: 9]
21-Apr-2006
[401]
We have done a little in Qtask.  WE save the tasks as XML (and call 
it XLS so that Excel can load it).
We will be writing an RSS reader soon.
Graham
25-Apr-2006
[402x4]
there's a new script in the library %rebelxml.r ( not sure why it 
isn't rebolxml.r )
what's the difference between RebXML, and rebelxml and other implementations?
which is best to use?
( I know nothing really of XML .. just know I have to parse some 
data, and rewrite out my data as xml )
Maxim
25-Apr-2006
[406]
I'm using rebxml as the loader and then write a dialect over it to 
convert to my preffered (easier to use) block format.
Graham
25-Apr-2006
[407]
what do think of this new script ?
Maxim
25-Apr-2006
[408x3]
Its news to me, but in my useage, Its easier for me to have rebol 
loaded blocks, cause I can use path notation directly, in order to 
access the data, just as if they where objects.
I must admit that just by looking at the docs, I prefer Geomol's 
solution better, its more approachable.
that's my 2 cents.  and a 2 minute overlook of rebelxml.r
Graham
25-Apr-2006
[411]
Where's your script ? :)
Maxim
25-Apr-2006
[412x2]
rebxml can be found here, with docs :-)   

http://home.tiscali.dk/john.niclasen/rebxml/
also, although I have not looked at rebelxml in this regard, rebxml 
handles many of the xml idiosyncracies in the XML specification like 
empty tags, CDATA blocks, and some level of character conversion 
to handle unicode and & escaped chars.
Geomol
26-Apr-2006
[414]
Great to see my work is being used! :-)
Joe
26-Apr-2006
[415]
How does rebxml compare to gavin withead xml-parser.r ?
Maxim
26-Apr-2006
[416]
its easy to use? and will get your job done within minutes of trying. 
  ;-)
Joe
26-Apr-2006
[417]
I used Gavin's code in the past and found very complete and useful, 
specially when using xml-object.r
Maxim
26-Apr-2006
[418]
it seems powerfull, but I had a hard type getting it to work.  I 
WAS pressed for time though.
Gabriele
27-Apr-2006
[419x3]
speaking of XPath (Reichart's msg on Altme group), I wonder if there's 
need for it in the community?
1) people want XSLT and XPath in rebol, because it's the standard 
and so on.

2) people want a dialect that offerst XSLT/XPath-like functionality 
to work on REBOL trees (as opposed to XML)

3) noone cares about representing data as trees in REBOL because 
dialects are much better anyway
(pick your choice :)
yeksoon
27-Apr-2006
[422]
why not post this on REBOLTalk.com forum as a poll?

have AltMe, ML user participate in this poll
Gabriele
27-Apr-2006
[423]
i'm just trying to get some ideas. not a real poll. but maybe we 
can post this on reboltalk too.
Sunanda
27-Apr-2006
[424]
I'd lead towards 3.

But that's because I heft XML into REBOL objects and fiddle with 
it from there.

That gets away from the strict hierachy of XML, so I don't need to 
think about basically insane things like XSLT's axis processing
Maxim
27-Apr-2006
[425x3]
and we already have data as trees in rebol, nested blocks and objects... 
so I don't think its going to help much.
although getting XML:schema LOAD/SAVE , complete, native  XML 1.0 
LOAD/SAVE  that would at least allow us to start using XML in the 
first place  ;-)
so my vote  3)
Gabriele
27-Apr-2006
[428]
we already have data as trees

 - if you use that, then tree rewriting would be very useful for you, 
 wouldn't it?
Maxim
27-Apr-2006
[429]
can you further define "tree rewriting"
yeksoon
27-Apr-2006
[430]
does having XSLT also means we can map that into /View?
ScottT
27-Apr-2006
[431]
well, if you can write a stylesheet that outputs a layout.  Not at 
all impossible, <xsl:output method="text" />
Gabriele
28-Apr-2006
[432]
max: tree rewriting is the technique that compilers use to get from 
the source AST to the final machine code; you can also imagine purely 
functional languages as special tree rewriting engines.