Class XMLUtils
java.lang.Object
jmt.framework.xml.XMLUtils
XML loading/saving of exact models
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSchema full checking feature id (http://apache.org/xml/features/validation/schema-full-checking).protected static final StringNamespaces feature id (http://xml.org/sax/features/namespaces).protected static final Stringprotected static final Stringprotected static final String -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
VALIDATION_FEATURE_ID
- See Also:
-
SCHEMA_VALIDATION_FEATURE_ID
- See Also:
-
VALIDATION_DYNAMIC_FEATURE_ID
- See Also:
-
NAMESPACES_FEATURE_ID
Namespaces feature id (http://xml.org/sax/features/namespaces).- See Also:
-
EXTERNAL_SCHEMA_LOCATION_PROPERTY_ID
Schema full checking feature id (http://apache.org/xml/features/validation/schema-full-checking).- See Also:
-
-
Constructor Details
-
XMLUtils
public XMLUtils()
-
-
Method Details
-
saveXML
public boolean saveXML(Document document, File file) throws IOException, SAXException, TransformerFactoryConfigurationError, TransformerException -
loadXML
Loads the xml.- Parameters:
f- the f parameter- Returns:
- the loaded Document of null if there were errors
- Throws:
SAXException- if the operation cannot be completedIOException- if the operation cannot be completed
-