Package edu.pdx.cs410J.family
Class XmlHelper
java.lang.Object
edu.pdx.cs410J.family.XmlHelper
- All Implemented Interfaces:
EntityResolver,ErrorHandler
This class contains fields and methods that are useful when dealing
with XML data.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidextractNotesFrom(Element element) Extracts a bunch of notes from anElementprotected static StringextractTextFrom(Element element) Extracts the text from anElement.voidresolveEntity(String publicId, String systemId) Attempt to resolve the external entity (such as a DTD) described by the given public and system ID.void
-
Field Details
-
systemID
The System ID for the Family Tree DTD- See Also:
-
publicID
The Public ID for the Family Tree DTD- See Also:
-
-
Constructor Details
-
XmlHelper
-
-
Method Details
-
resolveEntity
Attempt to resolve the external entity (such as a DTD) described by the given public and system ID. The external entity is returned as aInputSource- Specified by:
resolveEntityin interfaceEntityResolver- Throws:
SAXExceptionIOException
-
warning
- Specified by:
warningin interfaceErrorHandler- Throws:
SAXException
-
error
- Specified by:
errorin interfaceErrorHandler- Throws:
SAXException
-
fatalError
- Specified by:
fatalErrorin interfaceErrorHandler- Throws:
SAXException
-
extractNotesFrom
Extracts a bunch of notes from anElement -
extractTextFrom
Extracts the text from anElement.
-