• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Title Nodes

The text in XML is considered a separate node, which may seem odd, since text nodes don't look like normal nodes.

var title1Node = classesXML.createElement("title");
var title2Node = classesXML.createElement("title");
var title3Node = classesXML.createElement("title");
// note how text nodes are treated differently
var title1 = classesXML.createTextNode("XML for Dogs");
var title2 = classesXML.createTextNode("Tango Fundamentals");
var title3 = classesXML.createTextNode("Black Rock City Civics");


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint