@product = BetterStruct.new(product) end def title @product.descriptive_detail.title_detail.title_element.title_text.value end end ONIX example xml = "<DescriptiveDetail><TitleDetail><TitleElement><TitleText>Atlas Shrugged</ TitleText></TitleElement></TitleDetail></DescriptiveDetail>"