Hi there,If I have an element like this:#<Nokogiri::XML::Element:0x1650b48 name="title" namespace=#<Nokogiri::XML::Namespace:0x169160c prefix="dc" href="http://purl.org/dc/elements/1.1/"> attributes=[#<Nokogiri::XML::Attr:0x1650ad0 name="lang" namespace=#<Nokogiri::XML::Namespace:0x16502b0 prefix="xml" href="http://www.w3.org/XML/1998/namespace"> value="EN">] children=[#<Nokogiri::XML::Text:0x163fc6c "Austria">]>
Shouldn't e['lang'] return the lang attribute?Thanks a lot,Christoph--
You received this message because you are subscribed to the Google Groups "nokogiri-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nokogiri-tal...@googlegroups.com.
To post to this group, send email to nokogi...@googlegroups.com.
Visit this group at http://groups.google.com/group/nokogiri-talk?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
On May 8, 2013 8:59 AM, "Christoph Blank" <ch.b...@gmail.com> wrote:
>
> Thanks for your reply Mike.
>
> This is the XML:
> <geo:Countries xmlns:geo="http://schema.seekda.com/geo"
> xmlns:dc="http://purl.org/dc/elements/1.1/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://schema.seekda.com/geo geo.xsd">
> <geo:Country isoCode="AT">
> <dc:title xml:lang="EN">Austria</dc:title>
> </geo:Country>
> </geo:Countries>
>
> For the above, unfortunately I don't have more code currently as this is nokogori used inside the happymapper library.
I can tell you how to do this using the Nokogiri API, but it sounds like that won't help you, since you're using another gem.
How can I help you?