src/Types/Struct.php
public function write(\XMLWriter $writer, \DateTimeZone $timezone, $stringTag)
    {
        $writer->startElement('struct');
        foreach ($this->value as $key => $val) {
            $writer->startElement('member');
            $writer->startElement('name');
            $writer->text((string) $key);
            $writer->endElement();
            $writer->startElement('value');
            $val->write($writer, $timezone, $stringTag);
            $writer->endElement();
            $writer->endElement();
        }
        $writer->endElement();
    }
public function write(\XMLWriter $writer, \DateTimeZone $timezone, $stringTag)
    {
        $writer->startElement('struct');
        foreach ($this->value as $key => $val) {
            $writer->startElement('member');
            $writer->startElement('name');
            $writer->text((string) $key);
            $writer->endElement();
            $writer->startElement('value');
            $val->write($writer, $timezone, $stringTag);
            $writer->endElement();
            $writer->endElement();
        }
        $writer->endElement();
    }
/ \copydoc fpoirotte::XRL::Types::AbstractType::write()