Parse XML nodes to CSV with Ruby/Nokogiri
问题 Ruby parsing newbie here. I've got an XML file that looks like; ?xml version="1.0" encoding="iso-8859-1"?> <Offers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ssc.channeladvisor.com/files/cageneric.xsd"> <Offer> <Model><![CDATA[11016001]]></Model> <Manufacturer><![CDATA[Crocs, Inc.]]></Manufacturer> <ManufacturerModel><![CDATA[11016-001]]></ManufacturerModel> ...lots more nodes <Custom6><![CDATA[<li>Bold midsole stripe for a sporty look.</li>