libxml-Ruby ctrlA

S

Stefan Lauer

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
 
S

Stefan Lauer

Stefan said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top