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

World: r3wp

[XML] xml related conversations

Christophe
4-Jun-2006
[485]
Is REBOL not pronounce REBEL ? It was just for the fun...
Maxim
8-Jun-2006
[486]
implementing schema is sooo much fun!
Pekr
8-Jun-2006
[487]
I wonder if REBOL can get standards fully compliant XML parser/emitter 
....
Maxim
8-Jun-2006
[488]
(I hope my previous post was read as intended... ironically!)    
;-)  although schema is pretty well defined and actually not too 
badly designed, its just so huge.
Christophe
17-Jun-2006
[489]
Well, no reaction to RebelXML. Do I have to assume it has no bugs 
or nobody is using it ? :-))
Ashley
17-Jun-2006
[490]
Folks seem to be using/talking about it ... just do a google search 
on "RebelXML". ;)
Christophe
18-Jun-2006
[491x2]
Well, Ashley, this is very kind of you :-) But after checking the 
links, it seems Google isn't my friend anymore :-))
Seriously, I need this lib for my work. Is there anybody out there 
who has ANY comment about it ? Please ...
Anton
18-Jun-2006
[493x2]
Well, I just had a quick look. It seems to be clean code, well organised. 
Perhaps I can find some time to test it out myself in a few days.
I do not know much about the greater issues of XML, however.
Maarten
3-Jun-2007
[495]
Has anybody done work on translating XML schemas (perhaps automagically) 
to REBOL parse rules that can work on REbelXML/RebXML like native 
syntax?
Maxim
5-Jun-2007
[496x3]
hehe... I have a validating schema parser which uses a modified RebXML 
engine... but I still have not had the balls to ask my client if 
we would be willing to make it open source.... I'm sure he would 
benefit from the extra time people might put on it.
I did not do it using parse for lack of knowledge ... and also the 
fact that schema and PARSE do not have the same traversal mechanisms... 
but its still very fast and error report is extremely precise (it 
gives you the full path of the error!)
the change in RebXML was to forego of a few limitiations and to allow 
direct xpath like useage of the loaded xml... which can't be done 
with RebXML out of the box.
Graham
22-Oct-2008
[499]
What are people using to create XML ?
Tomc
22-Oct-2008
[500]
core
Graham
22-Oct-2008
[501]
apple core or solaris core?
Tomc
22-Oct-2008
[502]
solaris , I am just emitting some simple rss feeds
Henrik
22-Oct-2008
[503]
The HTML Dialect can do a bit of XML
Graham
22-Oct-2008
[504]
is this yours?
Henrik
22-Oct-2008
[505]
yes, posting some code to you privately.
Graham
22-Oct-2008
[506]
Ok .. Ta
Geomol
22-Oct-2008
[507]
RebXML: http://home.tiscali.dk/john.niclasen/rebxml/
Graham
22-Oct-2008
[508]
Good ... a few choices
Dockimbel
22-Oct-2008
[509x2]
RSP, I use it to generate RSS feeds from Cheyenne's blog.
REBOL's built in BUILD-MARKUP function can also be a good choice.
Maarten
24-Oct-2008
[511]
Which was the first apss at RSP (1 of 2 choices) I handede to Carl. 
I think build-markup does only support <%= %> not <% %> (which I 
always found a pity)
Graham
24-Oct-2008
[512x2]
apss = pass
( took me a while to figure out that one ...  )
Graham
25-Oct-2008
[514x3]
Just playing with rebelxml

>> set-xml-data/content 'header/to "[carl-:-rebol-:-com]"
== "<header><to>[carl-:-rebol-:-com]</to></header>"


Now if I start with "header" and "to", how would I get the same result?
<xs:complexType name="MessageType">
<xs:sequence>

<xs:element name="Header" minOccurs="1" maxOccurs="1" type="HeaderType" 
/>

<xs:element name="Body" minOccurs="1" maxOccurs="1" type="BodyType" 
/>
<xs:element name="Error">
<xs:complexType>
<xs:sequence>
<xs:element name="Code" minOccurs="1" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="600|601|602|900" />
</xs:restriction>
</xs:simpleType>
</xs:element>

<xs:element name="DescriptionCode" minOccurs="0" maxOccurs="1" type="an..3" 
/>

<xs:element name="Description" minOccurs="0" maxOccurs="1" type="an..70" 
/>
</xs:sequence>
</xs:complexType>
</xs:element>


If I have the schema looking like this ( no examples I'm afraid ), 
is something like this what I have to generate
<header> ... headertype .. </header>
<body>
<error>
<code> 600 </code>
<Descriptioncode />
<Description />
</error>
</body>
I probably need to wrap <message> tags around it too.
Graham
26-Oct-2008
[517]
How are people creating large xml documents where there are large 
numbers of elements and where the data is being drawn from a database.

Model the document first as a Rebol object!, and then generate the 
xml from the object?
Henrik
26-Oct-2008
[518]
That's a good method.
BrianH
27-Oct-2008
[519]
Some databases have the ability to generate XML directly. That approach 
can be faster, depending on how much data the database has to process. 
It all depends on what database you are using though.
Graham
3-Nov-2008
[520]
Has anyone used rebelxml.r ?
Graham
4-Nov-2008
[521]
Pekr thinks there is a tool that converts xml to a rebol object ... 
anyone know what it is?
Pekr
4-Nov-2008
[522]
wait a bit, I'll find it - it was cool stuff from XML REBOL guru. 
That person used it for his work ...
Graham
4-Nov-2008
[523]
Gavin Mckenzie was the guy who wrote a xml parser
Pekr
4-Nov-2008
[524]
yes, it is him. And his toolset contained several tools IIRC.
Graham
4-Nov-2008
[525]
I wasn't aware it created objects
Pekr
4-Nov-2008
[526]
http://www.rebol.org/view-script.r?script=xml-object.r
PeterWood
4-Nov-2008
[527]
It's explained in Chapter 4 of Olivier Auverlot's Rebol - Guide du 
Programmeur.
Graham
4-Nov-2008
[528]
Hmm.... kewl if it works
PeterWood
4-Nov-2008
[529]
obj-xml: make object! xml-to-object parse-xml+ read %my.xml
Pekr
4-Nov-2008
[530x2]
IIRC we discussed ability to creat XML back from the object, but 
such script was not written. Maybe it is not even possible, as rebol 
block as well as created object might not contain original xml tags 
info ...
Peter - what tools are you referring to? What is xml-to-object and 
parse-xml+?
Graham
4-Nov-2008
[532x3]
these are Gavin's stuff
>> do %xml-parse.r

Script: "A more XML 1.0 compliant set of XML parsing tools." (2-Mar-2005)
** Script Error: Invalid argument:
    Parses XML code and returns a tree of blocks.
    This is a more XML 1.0 compliant parse than the...
** Where: throw-on-error
** Near: func [[{
    Parses XML code and returns a tree of blocks.
    This is a more XML 1.0 compliant parse than the built-in
...
>>
is the file corrupted?