Sort by

recency

|

10 Discussions

|

  • + 0 comments

    I absolutely loved this blog! It covers such an informative topic that really helped me tackle some of my challenges. The opportunities it highlights are amazing, and the way things work is incredibly fast, making a real difference for my website!

  • + 0 comments
    # Standard ruby library for XML parsing
    require 'rexml/document'
    include REXML
    
    # Enter your code here. Read input from STDIN. Print output to STDOUT
    xmlText = "" 
    
    # Read the input XML Fragment
    while line = gets()
    	xmlText += line
    end
    
    doc = Document.new xmlText
    
    # XPath Selector for listing the titles of the last two movies in the list, listed in the same order as which they occur in the given XML.
    # Fill in the blanks to complete the required XPath selector query
    puts doc.elements.each("collection/movie[position()>=last()-1]/@title")
    
  • + 0 comments

    puts doc.elements.each("collection/movie[position()>=last()-1]/@title")

  • + 0 comments
    collection/movie[position() > last() - 2]/@title
    
  • + 0 comments

    Can i use this technique to store my clients data on my Hidden Asset Investigations website?