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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
extractNotesFrom
(Element element) Extracts a bunch of notes from anElement
protected static String
extractTextFrom
(Element element) Extracts the text from anElement
.void
resolveEntity
(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:
resolveEntity
in interfaceEntityResolver
- Throws:
SAXException
IOException
-
warning
- Specified by:
warning
in interfaceErrorHandler
- Throws:
SAXException
-
error
- Specified by:
error
in interfaceErrorHandler
- Throws:
SAXException
-
fatalError
- Specified by:
fatalError
in interfaceErrorHandler
- Throws:
SAXException
-
extractNotesFrom
Extracts a bunch of notes from anElement
-
extractTextFrom
Extracts the text from anElement
.
-