C
l
o
s
e

Step 1 - Describe the feed and specify data source(s)

Feed Description:
Source URL(s):
No data loaded
Selected Path:

				

Step 2 - Write the code that transforms the data sources

  • saveResult(data) - this saves the transformed data and *must* be called at the end of the transform code
  • debug(data) - outputs the data to the console to assist with debugging transform code
  • getElementById(id, [currentElement]) - finds the element with the specified ID (returns 0 or 1 element)
  • getElementsByTagName(name, [currentElement]) - returns a list of elements matching the name specificed
  • getElementsByTagType(type, [currentElement]) - returns a list of elements matching the type specificed (valid types are "text", "directive", "comment", "script", "style", and "tag")
  • getElements(attributes, [currentElement]) - returns a list of elements matching the attributes specified. There are two special attribute names, "tag_type" and "tag_name", which correspond to the tag's type and name, respectively
Note: for the getElement*() functions, if currentElement is passed, the search is restricted to that branch of the tree. Also, either literal values or a function may be passed to these functions:

getElementById("squee", data[0]);
getElementById(
    function (value) { return(value.indexOf("taco") == 0); }
  , data[0]
  );

getElements(
    {
      type: "button"
    , class: function (value) { return(value == "jester"); }
    }
  , data[0]
  );


Step 3 - Run the transform code, verify the output, and save!