codice:
        Dim Reader As System.Xml.XmlTextReader
        Dim strEsito As String

        Try
            Reader = New System.Xml.XmlTextReader(Server.MapPath("books.xml"))
            While Reader.Read
                Select Case Reader.NodeType
                    Case System.Xml.XmlNodeType.Element
                        lbDati.Text = lbDati.Text & Reader.Name & " --> "
                    Case System.Xml.XmlNodeType.Text
                        lbDati.Text = lbDati.Text & Reader.Value & "
"
                End Select

            End While
        Catch exc As Exception
            lbDati.Text = "errore"
        End Try
devo evitare le mi consideri anke le voci books e libro .

il file xml è il seguente ->

codice:
<books>
	<libro>
		<autore>Autore1</autore>
		<costo>Costo1</costo>
		<genere>Genere1</genere>
	</libro>
	<libro>
		<autore>Autore2</autore>
		<costo>Costo2</costo>
		<genere>Genere2</genere>
	</libro>
	<libro>
		<autore>Autore3</autore>
		<costo>Costo3</costo>
		<genere>Genere3</genere>
	</libro>		
	<libro>
		<autore>Autore4</autore>
		<costo>Costo4</costo>
		<genere>Genere4</genere>
	</libro>
</books>