Ao executar o código, recebo um erro:
Warning: validation was turned on but an org.xml.sax.ErrorHandler was not set, which is probably not what is desired. Parser will use a default ErrorHandler to print the first 0 errors. Please call the setErrorHandler method to fix this. Error: URI=file:///C:/Users/erick/eclipse-workspace/XML_Alura/src/vendas.xml Line=2: cvc-elt.1: Cannot find the declaration of element 'venda'.
BRL Nome: Livro de XML Preço: 29.9
Nome: Livro de O. a O. Java Preço: 29.9