Package org.eclipse.jface.internal
Class XmlProcessorFactoryJFace
java.lang.Object
org.eclipse.jface.internal.XmlProcessorFactoryJFace
XML processing which prohibits external entities.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentBuilderFactory
Creates DocumentBuilderFactory which throws SAXParseException when detecting external entities.static DocumentBuilder
Creates DocumentBuilder which throws SAXParseException when detecting external entities.
-
Method Details
-
createDocumentBuilderFactoryWithErrorOnDOCTYPE
Creates DocumentBuilderFactory which throws SAXParseException when detecting external entities. It's magnitudes faster to callcreateDocumentBuilderWithErrorOnDOCTYPE()
.- Returns:
- javax.xml.parsers.DocumentBuilderFactory
-
createDocumentBuilderWithErrorOnDOCTYPE
public static DocumentBuilder createDocumentBuilderWithErrorOnDOCTYPE() throws ParserConfigurationExceptionCreates DocumentBuilder which throws SAXParseException when detecting external entities. The builder is not thread safe.- Returns:
- javax.xml.parsers.DocumentBuilder
- Throws:
ParserConfigurationException
-