portfolio.xml: [Fatal Error] portfolio.dtd:4:3: Declaration type expected. Must be "ELEMENT", "ATTLIST", "ENTITY", or "NOTATION". [Warning] portfolio.xml:3:44: Element, "stock", refers to undeclared element, "name", in content model [Warning] portfolio.xml:3:44: Element, "stock", refers to undeclared element, "symbol", in content model [Warning] portfolio.xml:3:44: Element, "stock", refers to undeclared element, "price", in content model [Error] portfolio.xml:4:21: Attribute, "xmlns:dt", is not declared in element, "portfolio". [Error] portfolio.xml:5:11: Attribute, "xml:space", is not declared in element, "portfolio". [Error] portfolio.xml:6:19: Attribute, "exchange", is not declared in element, "stock". [Error] portfolio.xml:7:27: Element, "name" is not declared in the DTD [Error] portfolio.xml:8:26: Element, "symbol" is not declared in the DTD [Error] portfolio.xml:9:18: Attribute, "dt:dt", is not declared in element, "price". [Error] portfolio.xml:9:41: Element, "price" is not declared in the DTD [Error] portfolio.xml:11:19: Attribute, "exchange", is not declared in element, "stock". [Error] portfolio.xml:12:30: Element, "name" is not declared in the DTD [Error] portfolio.xml:13:26: Element, "symbol" is not declared in the DTD [Error] portfolio.xml:14:18: Attribute, "dt:dt", is not declared in element, "price". [Error] portfolio.xml:14:41: Element, "price" is not declared in the DTD [Error] portfolio.xml:16:19: Attribute, "exchange", is not declared in element, "stock". [Error] portfolio.xml:17:30: Element, "name" is not declared in the DTD [Error] portfolio.xml:18:26: Element, "symbol" is not declared in the DTD [Error] portfolio.xml:19:18: Attribute, "dt:dt", is not declared in element, "price". [Error] portfolio.xml:19:41: Element, "price" is not declared in the DTD [Error] portfolio.xml:21:13: Element "" contains incomplete content for the rule, "(stock)". [Fatal Error] portfolio.xml:22:1: Invalid document structure. Invalid document structure. at com.ibm.xml.framework.XMLParser.handleError(XMLParser.java) at com.ibm.xml.framework.XMLParser.error(XMLParser.java) at com.ibm.xml.internal.DefaultScanner.scanDocument(DefaultScanner.java) at com.ibm.xml.framework.XMLParser.parse(XMLParser.java) at com.ibm.xml.framework.XMLParser.parse(XMLParser.java) at sax.SAXWriter.print(SAXWriter.java) at sax.SAXWriter.main(SAXWriter.java)