From: John W Higgins Date: 2009-12-01T03:51:36+09:00 Subject: Re: Odd puts behaviour with REXML --001636ed651166cf6c04799b212b Content-Type: text/plain; charset=ISO-8859-1 Morning Again David, On Mon, Nov 30, 2009 at 10:43 AM, David Sainte-claire < dsainteclaire@gmail.com> wrote: > if I change > my XPATH statement to look more like this: > > data.elements.each("product/profile/support/title"){|element| > puts element.text > } > > Where product is the root note, and I'm only pulling out the title > element, I still get output that looks like this: > > ???Product_Support_Link_Title??? > > Can the link element be messing up my XPATH query even though I'm not > looking at that element? > The ampersand messes things up because if you confuse the parser then how is it supposed to figure out where the end of the support element is? XML is sort of a "it works or it doesn't" concept most of the time. Not much wiggle room for the most part. John --001636ed651166cf6c04799b212b--