Hpricot strangeness

Hi,

Has anyone noticed the following gotcha/bug(?) with empty xml tags in
hpricot: doc = Hpricot(“

aaaa
”) ;
doc.at(“foo”) => {elem {elem “aaaa” }} versus =>
{emptyelem } for

How to get around that?

thank you!
david

On Wed, Feb 13, 2008 at 12:40:32AM +0900, D. Krmpotic wrote:

Has anyone noticed the following gotcha/bug(?) with empty xml tags in
hpricot: doc = Hpricot(“

aaaa
”) ;
doc.at(“foo”) => {elem {elem “aaaa” }} versus =>
{emptyelem } for

How to get around that?

http://code.whytheluckystiff.net/hpricot/wiki/HpricotXML

thank you!
david
–Greg

Great, thanx… I did find this before, but somehow it didn’t work at the
first try. I did something wrong I guess. thank you again

Gregory S. wrote:

On Wed, Feb 13, 2008 at 12:40:32AM +0900, D. Krmpotic wrote:

Has anyone noticed the following gotcha/bug(?) with empty xml tags in
hpricot: doc = Hpricot(“

aaaa
”) ;
doc.at(“foo”) => {elem {elem “aaaa” }} versus =>
{emptyelem } for

How to get around that?

http://code.whytheluckystiff.net/hpricot/wiki/HpricotXML

thank you!
david
–Greg