XML/XSLT: Examples

Example: XML Restaurant Menu

	<?xml version="1.0" encoding="UTF-8"?>
		<name>Shrimp & Scallop Linguine</name>
		<description>Sautéed shrimp and sea scallops tossed with basil in our tomato cream sauce.</description>
		<name>Steak Oscar</name>
		<description>8-oz. center-cut sirloin, topped with premium lump crabmeat and citrus butter sauce. Served with grilled asparagus and mashed potatoes.</description>
		<name>Jerk Chicken</name>
		<description>Jerk chicken breast, fresh asparagus and mushrooms tossed in a Parmesan cream sauce with bow-tie pasta.</description>
		<name>Grilled Artichoke</name>
		<description>Grilled artichoke with sea salt, truffle, grana padano cheese, lemon aioli.</description>
		<calories>Small Plate</calories>

Screenshot of Output:

  screenshot of XML page

Run It:

When you run an XML file in a browser the trees can be clicked to expand and close them.