Fork me on GitHub Fork me on GitHub

XML


<%
	var employees=
			<employees>
				<person>
					<name>Tove</name>
					<age>32</age>
				</person>
				<person>
					<name>Jani</name>
					<age>26</age>
				</person>
			</employees>;
	
	//or var employees= new XML("<employees><person><name>Tove</name><age>32</age></person><person><name>Jani</name><age>26</age></person></employees>");
	
	print("Toves age is - " + employees.person.(name == "Tove").age);
%>

Overview

XML is an API class in jaggery, and it provides the fucntionality of E4X for XML manipulation. more information about EX4 can be found at Mozilla Developer Network