<%@ Page Language="C#"%>
<html>
	<head>
		<title>Exemplo com o controle XmlDataSource</title>
	</head>
	<body>
		<form id="Form1" runat="server">
			<asp:XmlDataSource
				id="PedidosDataSource"
				runat="server"
				DataFile="~/App_Data/Pedidos.xml" >
			</asp:XmlDataSource>
			<asp:TreeView
				id="PedidosTreeView"
				runat="server"
				DataSourceID="PedidosDataSource">
				<DataBindings>
					<asp:TreeNodeBinding DataMember="Nome" TextField="#InnerText" />
					<asp:TreeNodeBinding DataMember="Sobrenome" TextField="#InnerText" />
					<asp:TreeNodeBinding DataMember="Rua" TextField="#InnerText" />
					<asp:TreeNodeBinding DataMember="Cidade" TextField="#InnerText" />
					<asp:TreeNodeBinding DataMember="Cep" TextField="#InnerText" />
					<asp:TreeNodeBinding DataMember="Produto" TextField="#InnerText" />
					<asp:TreeNodeBinding DataMember="Quantidade" TextField="#InnerText" />
					<asp:TreeNodeBinding DataMember="PreçoUnitário" TextField="#InnerText" />
					<asp:TreeNodeBinding DataMember="Total" TextField="#InnerText" />
				</DataBindings>
			</asp:TreeView>
		</form>
	</body>
</html>

