/** * @param string $sTagName * @param string $sValue = null * @param bool $bIsCDATA = false * @param bool $bIsSimpleCharsCode = false * @param string $sNodeComment = '' */ public function __construct($sTagName, $sValue = null, $bIsCDATA = false, $bIsSimpleCharsCode = false, $sNodeComment = '') { $this->Attributes = array(); $this->Children = array(); $this->TagName = $sTagName; $this->Value = $bIsCDATA && null !== $sValue ? '<![CDATA[' . ($bIsSimpleCharsCode ? api_Utils::EncodeSimpleSpecialXmlChars($sValue) : api_Utils::EncodeSpecialXmlChars($sValue)) . ']]>' : $sValue; $this->Comment = $sNodeComment; }