Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <listaCompra>
- <item nombre="leche" cantidad="12 litros"/>
- <item nombre="pan" cantidad="3 barras de cuarto"/>
- </listaCompra>
- <!--Codigo Erroneo-->
- <¡--
- <?xml version="1.0" encoding="UTF-8"?>
- 29. <!DOCTYPE listaCompra [
- 30. <!ELEMENT listaCompra (item*)>
- 31. <!ELEMENT item EMPTY>
- 32. <!ATTLIST item nombre CDATA #REQUIRED>
- 33. <!ATTLIST item cantidad CDATA #REQUIRED>
- 34. ]>
- 35.
- 36. <listaCompra>
- 37. <leche cantidad="12 litros" ></leche>
- 38. <pan cantidad="3 barras de cuarto" />
- </listaCompra>
- No existen los elementos <leche> o <pan>.Para corregirlo, habría que convertir las etiquetas <leche> y <pan> en etiquetas <item>.
- -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement