HeadTag = new XMLTag('head'); $this->TitleTag = new XMLTag('title'); $this->TitleTag->SubElements = ''; $ContentType = new XMLTag('meta'); $ContentType->Attributes = array('http-equiv' => 'content-type', 'content' => 'application/xhtml+xml; charset='.$this->Encoding); $this->HeadTag->SubElements = array($this->TitleTag, $ContentType); $this->BodyTag = new XMLTag('body'); } function GetOutput() { $HTML = new XMLTag('html'); $HTML->Attributes = array('xmlns' => 'http://www.w3.org/1999/xhtml', 'xml:lang' => 'cs'); $HTML->SubElements = array($this->HeadTag, $this->BodyTag); $DOCTYPE = new XMLTag('!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"'); $DOCTYPE->EndSymbol = ''; $this->Content = new XMLTag(); $this->Content->SubElements = array($DOCTYPE, $HTML); return(parent::GetOutput()); } } ?>