gdaniels 2002/11/25 11:19:13 Modified: proposals/XmlSchema/src/org/apache/axis/xsd/xml/schema XmlSchema.java Log: Playing around with this package a bit. Expose public read() methods for DOM Document and Element (so we can use this inside, say, a deserializer). Revision Changes Path 1.3 +6 -1 xml-axis/proposals/XmlSchema/src/org/apache/axis/xsd/xml/schema/XmlSchema.java Index: XmlSchema.java =================================================================== RCS file: /home/cvs/xml-axis/proposals/XmlSchema/src/org/apache/axis/xsd/xml/schema/XmlSchema.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- XmlSchema.java 17 Nov 2002 23:53:18 -0000 1.2 +++ XmlSchema.java 25 Nov 2002 19:19:11 -0000 1.3 @@ -186,9 +186,14 @@ } } - static XmlSchema read(Document doc, ValidationEventHandler veh) { + public static XmlSchema read(Document doc, ValidationEventHandler veh) { SchemaBuilder builder = new SchemaBuilder(); return builder.build(doc, veh); + } + + public static XmlSchema read(Element elem) { + SchemaBuilder builder = new SchemaBuilder(); + return builder.handleXmlSchemaElement(elem); } public XmlSchemaForm getAttributeFormDefault() {