public void startElement(String pNamespaceURI, String pLocalName, String pQName,
Attributes pAttr) throws SAXException {
if (xsContentHandler == null) {
if (XSParser.XML_SCHEMA_URI.equals(pNamespaceURI) && "schema".equals(pLocalName)) {
XSParser parser = new XSParser();
Element element = myDataTypes.getDocumentElement();
String namespace = element.getAttributeNS(null, "targetNamespace");
if (namespace == null || namespace.length() == 0) {
throw new IllegalStateException("Namespace is not set");
}
parser.addImport(namespace, soapDataTypes);
xsContentHandler = new XSParser().getXSContentHandler();
if (locator != null) {
xsContentHandler.setDocumentLocator(locator);
}
xsContentHandler.startDocument();
for (int i = 0; i < prefixes.size(); i += 2) {