Re: rexml und ß
Oliver Mensinger <[email protected]> Tue, 25 Feb 2003 16:19:26 +0100 (CET)
| Newsgroups | gmane.comp.lang.ruby.german |
|---|---|
| Message-ID | <[email protected]> |
ruby -vr rexml/rexml -e 'puts REXML::Version'
ergibt bei mir:
ruby 1.6.7 (2002-03-01) [i686-linux]
2.3.5
Wie gesagt, bei mir funktioniert Dein Beispiel.
On Tue, 25 Feb 2003, Manfred Hansen wrote:
>Hallo,
>
>versuche gerade meine ersten gehversuche mit xml.
>Folgendes Beispiel:
>
>#!/usr/bin/ruby
>require "rexml/document"
>include REXML
>werte = Document.new File.new("rg.xml")
>
>Die rg.xml Datei
><?xml version="1.0" encoding="ISO-8859-1"?>
><BILLITEM>
><PRODUCT_NAME>Anschluß</PRODUCT_NAME>
></BILLITEM>
>
>Fehlermeldung:
>
>/usr/lib/ruby/1.6/rexml/element.rb:455:in `parse': Missing end tag for PRODUCT_NAME (REXML::ParseException)
>at about line 4:
></BILLITEM>
>in element UNDEFINED
>
> from /usr/lib/ruby/1.6/rexml/element.rb:39:in `initialize'
> from /usr/lib/ruby/1.6/rexml/element.rb:477:in `new'
> from /usr/lib/ruby/1.6/rexml/element.rb:477:in `parse_children'
> from /usr/lib/ruby/1.6/rexml/element.rb:453:in `parse'
> from /usr/lib/ruby/1.6/rexml/element.rb:39:in `initialize'
> from /usr/lib/ruby/1.6/rexml/document.rb:207:in `new'
> from /usr/lib/ruby/1.6/rexml/document.rb:207:in `parse'
> from /usr/lib/ruby/1.6/rexml/document.rb:41:in `initialize'
> from ./rgxml.rb:6:in `new'
> from ./rgxml.rb:6
>
>Ersetze ich das Wort Anschluß durch Anschlus scheint es zu gehen.
>Leider liegen mir die Daten nur mit "ß" vor.
>
>
>--
>Manfred Hansen, 24229 Strande
>e-Mail: [email protected]
>_______________________________________________
>ruby-de mailing list
>[email protected]
>http://lists.bttr.org/mailman/listinfo/ruby-de
>