[REBOL] Re: XML-Parsing?!?
From: pscheller:atos:ch at: 25-Oct-2000 16:31
Petr Krenzelok wrote:
> Joel Neely wrote:
Hi Petr
> > I've been playing with parse-xml for quite a while (in fact, that's
> > what got me to using REBOL seriously in the first place), so let me
> > give a couple of hints that may help.
> I just don't understand one thing yet, - why don't you folks use load/markup?
> invoice: load/markup %some-file-received.xml
> and then e.g. print invoice/<invoice-number>, as path selection works with
> tags. It's just pity it doesn't allow to use strings, it could be helpful
> sometimes ...
Well actually I tried it all. But I still dont get it. Either it doesn't
work the same way with me or I still have a big lack of understanding.
All I need is the possibility to simply read an external XML-File and
extract values from certain tags like this:
Pseudo: print the value of Prozesse/cre
------------------------BEGIN XML----------------------------------
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!-- Diese Datei enthält die Stati der xxx relevanten Prozesse -->
<!-- 0=OK, 1=Fehler/fehlend, 2=Unbekannt -->
<test1 name = "Patrick" />
<test2 name = "Scheller" />
<Prozesse>
<xxx = "1" />
<cre = "2" />
<ora = "3" />
<xxxrec = "4" />
<db_ppb = "5" />
</Prozesse>
<!-- Ende der Datei -->
-------------------------END XML-----------------------------------
How would you do this Petr??
Thanx and greets from me :-)
___________________________________________________________________
Atos (Schweiz) AG
Patrick Scheller Phone: ++41- 1-877 69 69
Industriestrasse 19 Fax: ++41- 1-877 69 99
CH-8304 Wallisellen Internet: [pscheller--atos--ch]