parser.set(null);
}
}
protected XSLogicalParser newXSLogicalParser() {
XSLogicalParser logicalParser = getContext().getXSObjectFactory().newXSLogicalParser();
logicalParser.setValidating(isValidating());
for (int i = 0; i < addedImports.size(); i++) {
XSLogicalParser.AddedImport addedImport = (XSLogicalParser.AddedImport) addedImports.get(i);
if (addedImport.getNode() == null) {
logicalParser.addImport(addedImport.getNamespace(), addedImport.getSchemaLocation());
} else {
logicalParser.addImport(addedImport.getNamespace(), addedImport.getSchemaLocation(), addedImport.getNode());
}
}
return logicalParser;
}