After generating my document with dom4j I validate it: SAXValidator sv = new SAXValidator(); sv.validate(doc);
I then give this document to a third party tool to use and they give this: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content starting with element 'Widget'. The content must match '(("":Type),("":WidgetProperty){0-UNBOUNDED},("":Widget){0-UNBOUNDED},("":DisplayBox))'. at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:267) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:201) So, am I not validating like I think I am, or is the third party validation perhaps stricter? My generated document restricts itself to Type, WidgetProperty, Widget, and DisplayBox... although not in that order. Thanks-- Mike ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user