XMLElement getName





XMLElement::getName() \ Language (API) \ Processing 1.0






























Language (A-Z) \ Libraries \ Tools \ Environment






Reference for Processing version 1.2. If you have a previous version, use the reference included with your software. If you see any errors or have suggestions, please let us know. If you prefer a more technical reference, visit the Processing Javadoc.

Class XMLElement Name getName() Examples // The following short XML file called "sites.xml" is parsed // in the code below. It must be in the project's "data" directory // <?xml version="1.0"?> // <websites> // <site> // <name>Processing</name> // <url>www.processing.org</url> // </site> // </websites> XMLElement xml; void setup() { size(200, 200); xml = new XMLElement(this, "sites.xml"); XMLElement site = xml.getChild(0); XMLElement[] siteData = site.getChildren(); String s1 = siteData[0].getName(); String s2 = siteData[1].getName(); println(s1 + " : " + s2); // Prints "name : url" } Description Returns the name of the element. Syntax xml.getName() Parameters xml any variable of type XMLElement Returns String Usage Web & Application

Updated on June 14, 2010 12:05:29pm EDT












Processing was initiated by Ben Fry and Casey Reas. It is developed by a small team of volunteers.


© Info \

Site hosted by Media Temple!









Wyszukiwarka

Podobne podstrony:
XMLElement getName
XMLElement getChildren
XMLElement getContent
XMLElement
XMLElement getChildCount
XMLElement getIntAttribute
XMLElement getChild
XMLElement getStringAttribute
XMLElement getFloatAttribute
XMLElement getChildren
XMLElement getChildCount
XMLElement getIntAttribute
XMLElement
XMLElement getContent
XMLElement getChild

więcej podobnych podstron