pModel = pModel.substring(0, pModel.length()-1);
if ("".equals(pModel)) {
XsQName qName = XSString.getInstance().getName();
qName = new XsQName(qName.getNamespaceURI(), qName.getLocalName(), "xs");
if (pHasAttributes) {
XsTLocalComplexType complexType = pElement.createComplexType();
XsESimpleContent simpleContent = complexType.createSimpleContent();
XsTSimpleExtensionType ext = simpleContent.createExtension();
ext.setBase(qName);
return ext;
} else {
pElement.setType(qName);
return null;
}
} else if (!unbounded) {
throw new SAXParseException("Mixed content must be either #PCDATA or have multiplicity '*'",
pLocator);
} else {
XsTLocalComplexType complexType = pElement.createComplexType();
complexType.setMixed(true);
XsEChoice choice = complexType.createChoice();
choice.setMinOccurs(0);
choice.setMaxOccurs("unbounded");
while (!"".equals(pModel)) {
if (pModel.startsWith("|")) {
pModel = pModel.substring(1).trim();