Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
libxml-Ruby ctrlA
Stefan Lauer
3/28/2007 9:06:00 AM
Hello,
on my Server amd x86_64 ruby 1.8.4 and libXML 0.3.8.4 are installed. I
read in large xml-Files and process it (that means delete some
nodes/elements) and write them out. The output file contains sometimes
suddenly ctrl+A characters.
I tried it also with ruby 1.8.5 and libXML 0.3.8.2. and crossover it. It
is always the same.
Sometimes the ctrlA is in the middle of the element-tag and the rest is
deleted. It looks like this for example
normal:
<attrib name="foobar">text</attrb>
with ctrlA
<attrib name="foo^A>text</attrib>
For me it looks like an overflow.
Is this a known Bug? I can't find anything.
Is a workaround for that available?
Thanks for help
--
Posted via
http://www.ruby-...
.
1 Answer
Stefan Lauer
3/28/2007 10:17:00 AM
0
Stefan Lauer wrote:
> Hello,
>
> on my Server amd x86_64 ruby 1.8.4 and libXML 0.3.8.4 are installed. I
> read in large xml-Files and process it (that means delete some
> nodes/elements) and write them out. The output file contains sometimes
> suddenly ctrl+A characters.
>
> I tried it also with ruby 1.8.5 and libXML 0.3.8.2. and crossover it. It
> is always the same.
>
> Sometimes the ctrlA is in the middle of the element-tag and the rest is
> deleted. It looks like this for example
> normal:
> <attrib name="foobar">text</attrb>
>
> with ctrlA
> <attrib name="foo^A>text</attrib>
>
> For me it looks like an overflow.
>
> Is this a known Bug? I can't find anything.
> Is a workaround for that available?
>
> Thanks for help
I found out the ctrlA comes in on the read in with
XML::Document.file(file)
If read in with File.new and write it out the ctrlA isn't in the xml
file.
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
libxml-Ruby ctrlA
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password