Two questions/remarks: 1) Why don't you use the XML Beans to create the document (instead of StringBuilder)? It is an advantage to using XML beans if you have the Java classes of your schema.
2) Wrong namespace declaration in XML instance You declare XSD as the default namespace (no prefix) <BusRoute xmlns='http://www.w3.org/2001/XMLSchema'> which is wrong for this XML as it is your own schema. you should have instead <BusRoute xmlns='http://mySchema'> where mySchema if the namespace of the schema you compiled for BusRoute element defintion. This XML certainly fails any schema validation. JM --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

