Class DOMIT_Doctor
A set of utilities for repairing malformed XML. This is a static class.

isPublic? no
isAbstract? no

Inheritance tree:

DOMIT_Doctor (top level class)

Known subclasses:

None

Source file: xml_domit_doctor.php




Constructor



Public Constants



Private Constants



Public Fields



Private Fields



Public Methods
fixAmpersands
Looks for illegal ampersands and converts them to entities.

Signature: fixAmpersands($xmlText)

Parameters:

String xmlText - The xml text to be repaired.

Returns:

String - The repaired xml text.

Example:

Repairs the specified xml text.

$myXMLText = DOMIT_Doctor::fixAmpersands($myXMLText);

evaluateCharacter
Evaluates whether an ampersand should be converted to an entity, and performs the conversion.

Signature: evaluateCharacter($xmlText, $illegalChar, $startIndex)

Parameters:

String xmlText - The xml text.

String illegalChar - The (ampersand) character.

int startIndex - The character index immediately following the ampersand in question.

Returns:

String - The repaired xml text.




Private Methods

Documentation generated by ClassyDoc, using the DOMIT! and SAXY parsers.
Please visit Engage Interactive to download free copies.