29 Apr '13, 9am

"Nokogiri::XML::Node is your window to the fun filled world of dealing with XML and HTML tags."

static VALUE add_namespace_definition(VALUE self, VALUE prefix, VALUE href) { xmlNodePtr node, namespacee; xmlNsPtr ns; Data_Get_Struct(self, xmlNode, node); namespacee = node ; ns = xmlSearchNs( node->doc, node, (const xmlChar *)(NIL_P(prefix) ? NULL : StringValuePtr(prefix)) ); if(!ns) { if (node->type != XML_ELEMENT_NODE) { namespacee = node->parent; } ns = xmlNewNs( namespacee, (const xmlChar *)StringValuePtr(href), (const xmlChar *)(NIL_P(prefix) ? NULL : StringValuePtr(prefix)) ); } if (!ns) return Qnil ; if(NIL_P(prefix) || node != namespacee) xmlSetNs(node, ns); return Nokogiri_wrap_xml_namespace(node->doc, ns); }

Full article: http://nokogiri.org/Nokogiri/XML/Node.html

Tweets

Rolls-Royce Wraith Harrods window display debut

Rolls-Royce Wraith Harrods window display debut

paultan.org 30 Apr '13, 2am

Here’s a unique way to debut a new model. In the UK, the new Rolls-Royce Wraith will be showcased in the window display of...

Elderly woman standing on window ledge rescued by SCDF officers

Elderly woman standing on window ledge rescued ...

straitstimes.com 29 Apr '13, 10am

An elderly woman, believed to be in her 70s, was seen standing on the ledge of her kitchen window on the top floor of a Ho...

Michael Shannon Goes Delta Gamma [Fun Video Fri...

reelseo.com 26 Apr '13, 7pm

Hello, all. We're here for another Friday filled with videos that are fun and amazing. This week brought out the funny, as...

Just stick this portable outlet to your window to start using solar power

Just stick this portable outlet to your window ...

grist.org 29 Apr '13, 4pm

We have seen a lot of solar chargers in our day. And among of all of them, this is the first one we’ve seen that we will d...

Interesting concept. A portable power socket yo...

yankodesign.com 29 Apr '13, 2am

Christopher, APPARENTLY, you lost the idea behind this. You’re shortsightedness didn’t allow you to see that it’s not supp...

“@0x6D6172696F: I wonder if there's many applic...

api.rubyonrails.org 21 Apr '13, 7pm

Class HTML::Sanitizer < Object actionpack/lib/action_controller/vendor/html-scanner/html/sanitizer.rb

Window Socket – Solar Energy Powered Socket by ...

yankodesign.com 26 Apr '13, 12pm

The Window Socket offers a neat way to harness solar energy and use it as a plug socket. So far we have seen solutions tha...

Window help! #green

greenbuildingadvisor.com 24 Apr '13, 7pm

We are in the process of renovating our fixer upper. It is a home built in 1986, with original windows, that are in terrib...

Not a rosetta, but it's fun to make - an indian chief by LatteArtGuide: Not a rosetta, but it's fun to make

Not a rosetta, but it's fun to make - an indian...

ratemyrosetta.com 27 Apr '13, 6pm

Not a rosetta, but it's fun to make - an indian chief by LatteArtGuide Currently 5/5 1 2 3 4 5 You can see how to make it ...

4 SEO Recommendations For Dealing With B2B Lengthening Sales Cycles

4 SEO Recommendations For Dealing With B2B Leng...

searchengineland.com 17 Apr '13, 1pm

Many of our clients face sales cycles in a six- to twelve-month duration. In a recent client interview, one of the sales d...

Window Socket – Solar Energy Powered Socket by ...

yankodesign.com 26 Apr '13, 7pm

The Window Socket offers a neat way to harness solar energy and use it as a plug socket. So far we have seen solutions tha...

10 of the quirkiest hotel rooms in the world #q...

aluxurytravelblog.com 26 Apr '13, 2pm

Hotel rooms can be expensive, especially while on a city break – aiming to take in more sights than your balcony or window...

Meditation Made Easy: 5 Fun Ideas

Meditation Made Easy: 5 Fun Ideas

care2.com 19 Apr '13, 6pm

While meditation has a strong reputation as a stress buster, not many of us can manage to sit there and do nothing—even fo...

John Lewis Puts Customers in the Picture as Interactive Window Displays Promote Latest Smart T...

John Lewis Puts Customers in the Picture as Int...

tmworld.com 20 Apr '13, 3am

LONDON , April 17, 2013 /PRNewswire/ -- Always first with the latest technology, John Lewis is running an exciting campaig...