Class domit_doctor

Description

A (static) class containing utilities for repairing malformed XML

Located in /includes/domit/xml_domit_doctor.php (line 18)


	
			
Method Summary
string evaluateCharacter (string $xmlText, string $illegalChar, int $startIndex)
string fixAmpersands (string $xmlText)
Methods
evaluateCharacter (line 53)

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

  • return: The repaired xml text
string evaluateCharacter (string $xmlText, string $illegalChar, int $startIndex)
  • string $xmlText: The xml text
  • string $illegalChar: The (ampersand) character
  • int $startIndex: The character index immediately following the ampersand in question
fixAmpersands (line 25)

Looks for illegal ampersands and converts them to entities

  • return: The repaired xml text
string fixAmpersands (string $xmlText)
  • string $xmlText: The xml text to be repaired

Documentation generated on Fri, 4 Mar 2005 13:57:34 +1000 by phpDocumentor 1.3.0RC3