This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
} --------------------------------- the xsd is correct. And the xml is valid i think. but when i run this program, it give me the following error. org.xml.sax.SAXParseException: Valid documents must have a <!DOCTYPE declaration . org.xml.sax.SAXParseException: Element type "CollaborationProtocolProfile" is no t declared. at org.apache.crimson.parser.Parser2.error(Unknown Source) at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source) at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source) at org.apache.crimson.parser.Parser2.parse(Unknown Source) at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source) at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(Unknown Source) at javax.xml.parsers.DocumentBuilder.parse(Unknown Source) at validator.main(validator.java:39) ------------------------------------- for the first error, i don't know what it means. for the second error, i have declared it in the schema, but why still said not defined? can anybody shed some lite...
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
5
posted
0
Are you referencing your Schema document from the XML document? Here's an example from w3schools.com: