当前位置: 首页>>代码示例>>PHP>>正文


PHP XMLWriter::openURI方法代码示例

本文整理汇总了PHP中XMLWriter::openURI方法的典型用法代码示例。如果您正苦于以下问题:PHP XMLWriter::openURI方法的具体用法?PHP XMLWriter::openURI怎么用?PHP XMLWriter::openURI使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在XMLWriter的用法示例。


在下文中一共展示了XMLWriter::openURI方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: showResponse

 /**
  * @param array $params
  * @param string $message
  * @param int $code
  */
 private function showResponse(array $params, $message = '', $code = 0)
 {
     header("Content-type: text/xml; charset=utf-8");
     $writer = new XMLWriter();
     $writer->openURI('php://output');
     $writer->startDocument('1.0', 'UTF-8');
     $writer->startElement($params['action'] . 'Response');
     $writer->startAttribute('performedDatetime');
     $writer->text(date('c'));
     $writer->endAttribute();
     $writer->startAttribute('code');
     $writer->text($code);
     $writer->endAttribute();
     $writer->startAttribute('invoiceId');
     $writer->text($params['invoiceId']);
     $writer->endAttribute();
     $writer->startAttribute('message');
     $writer->text($message);
     $writer->endAttribute();
     $writer->startAttribute('shopId');
     $writer->text($params['shopId']);
     $writer->endAttribute();
     $writer->endElement();
     $writer->endDocument();
     Yii::app()->end();
 }
开发者ID:yupe,项目名称:yupe,代码行数:31,代码来源:YandexMoneyPaymentSystem.php

示例2: saveToFile

 /**
  * @param string $fileToSave
  * @param number $offsetStart
  * @param number $limit
  * @param null | string $suffix
  *
  * @return string
  */
 protected function saveToFile($fileToSave, $offsetStart, $limit, $suffix = null)
 {
     $writer = new \XMLWriter();
     $path = pathinfo($fileToSave);
     $filePath = $path['dirname'] . '/' . $path['filename'];
     if (!is_null($suffix)) {
         $filePath .= self::SEPERATOR . $suffix;
     }
     if (empty($path['extension'])) {
         $filePath .= self::XML_EXT;
     } else {
         $filePath .= '.' . $path['extension'];
     }
     $writer->openURI($filePath);
     $writer->startDocument('1.0', 'UTF-8');
     $writer->setIndent(true);
     $writer->startElement('sitemapindex');
     $writer->writeAttribute('xmlns', self::SCHEMA);
     for ($i = $offsetStart; $i < count($this->items) && $i < $limit; $i++) {
         $item = $this->items[$i];
         $writer->startElement('sitemap');
         $writer->writeElement('loc', $item['url']);
         $writer->writeElement('lastmod', $item['modified']->format(ModifiableInterface::MODIFIED_DATE_FORMAT));
         $writer->endElement();
     }
     $writer->endElement();
     $writer->endDocument();
     return $filePath;
 }
开发者ID:spalax,项目名称:sitemap-generator,代码行数:37,代码来源:SitemapIndex.php

示例3: writeTo

 /**
  * @param string $resource
  */
 private function writeTo($resource)
 {
     $this->writer->openURI($resource);
     $this->writer->startDocument($this->version, $this->encoding);
     $this->writer->setIndent(true);
     $this->writer->setIndentString("\t");
     $this->getRoot()->save($this->writer);
     $this->writer->endDocument();
     $this->writer->flush();
 }
开发者ID:fewlines,项目名称:xml,代码行数:13,代码来源:XML.php

示例4: generate

 /**
  * generate export
  * 
  * @return mixed filename/generated object/...
  */
 public function generate()
 {
     $this->_writer = new XMLWriter();
     $this->_writer->openURI('php://output');
     $this->_writer->startDocument("1.0", "iso-8859-1");
     $this->_writer->startElement("phonebooks");
     $this->_writer->startElement("phonebook");
     $this->_exportRecords();
     $this->_writer->endDocument();
     $this->_writer->flush();
 }
开发者ID:ingoratsdorf,项目名称:Tine-2.0-Open-Source-Groupware-and-CRM,代码行数:16,代码来源:FritzBox.php

示例5: writeXRDS

 /**
  * Write XRDS using XMLWriter
  *
  * Outputs a XRDS document specifying an OMB service.
  *
  * @param OMB_profile     $user   The target user for the OMB service
  * @param OMB_XRDS_Mapper $mapper An OMB_XRDS_Mapper providing endpoint URLs
  */
 public function writeXRDS($user, $mapper)
 {
     header('Content-Type: application/xrds+xml');
     $xw = new XMLWriter();
     $xw->openURI('php://output');
     $xw->setIndent(true);
     $xw->startDocument('1.0', 'UTF-8');
     $this->_writeFullElement($xw, 'XRDS', array('xmlns' => 'xri://$xrds'), array(array('XRD', array('xmlns' => 'xri://$xrd*($v*2.0)', 'xml:id' => 'oauth', 'xmlns:simple' => 'http://xrds-simple.net/core/1.0', 'version' => '2.0'), array(array('Type', null, 'xri://$xrds*simple'), array('Service', null, array(array('Type', null, OAUTH_ENDPOINT_REQUEST), array('URI', null, $mapper->getURL(OAUTH_ENDPOINT_REQUEST)), array('Type', null, OAUTH_AUTH_HEADER), array('Type', null, OAUTH_POST_BODY), array('Type', null, OAUTH_HMAC_SHA1), array('LocalID', null, $user->getIdentifierURI()))), array('Service', null, array(array('Type', null, OAUTH_ENDPOINT_AUTHORIZE), array('URI', null, $mapper->getURL(OAUTH_ENDPOINT_AUTHORIZE)), array('Type', null, OAUTH_AUTH_HEADER), array('Type', null, OAUTH_POST_BODY), array('Type', null, OAUTH_HMAC_SHA1))), array('Service', null, array(array('Type', null, OAUTH_ENDPOINT_ACCESS), array('URI', null, $mapper->getURL(OAUTH_ENDPOINT_ACCESS)), array('Type', null, OAUTH_AUTH_HEADER), array('Type', null, OAUTH_POST_BODY), array('Type', null, OAUTH_HMAC_SHA1))), array('Service', null, array(array('Type', null, OAUTH_ENDPOINT_RESOURCE), array('Type', null, OAUTH_AUTH_HEADER), array('Type', null, OAUTH_POST_BODY), array('Type', null, OAUTH_HMAC_SHA1))))), array('XRD', array('xmlns' => 'xri://$xrd*($v*2.0)', 'xml:id' => 'omb', 'xmlns:simple' => 'http://xrds-simple.net/core/1.0', 'version' => '2.0'), array(array('Type', null, 'xri://$xrds*simple'), array('Service', null, array(array('Type', null, OMB_ENDPOINT_POSTNOTICE), array('URI', null, $mapper->getURL(OMB_ENDPOINT_POSTNOTICE)))), array('Service', null, array(array('Type', null, OMB_ENDPOINT_UPDATEPROFILE), array('URI', null, $mapper->getURL(OMB_ENDPOINT_UPDATEPROFILE)))))), array('XRD', array('xmlns' => 'xri://$xrd*($v*2.0)', 'version' => '2.0'), array(array('Type', null, 'xri://$xrds*simple'), array('Service', null, array(array('Type', null, OAUTH_DISCOVERY), array('URI', null, '#oauth'))), array('Service', null, array(array('Type', null, OMB_VERSION), array('URI', null, '#omb')))))));
     $xw->endDocument();
     $xw->flush();
 }
开发者ID:microcosmx,项目名称:experiments,代码行数:19,代码来源:plain_xrds_writer.php

示例6: saveToFile

 /**
  * Writes view informations into a XML file, replacing or creating it if necessary.
  */
 public function saveToFile()
 {
     $XMLViewDoc = new XMLWriter();
     $XMLViewDoc->openURI('file://' . VIEW_DATA_DIR . '/' . $this->id . '.xml');
     $XMLViewDoc->setIndent(true);
     $XMLViewDoc->setIndentString('    ');
     $XMLViewDoc->startDocument();
     $XMLViewDoc->startElement("view");
     $XMLViewDoc->writeElement("slice-transformation-filename", $this->getXsltSliceToSVG());
     $XMLViewDoc->writeElement("obsel-transformation-filename", $this->getXsltObselToSVG());
     $XMLViewDoc->writeElement("default-scale", $this->getDefaultScale());
     $XMLViewDoc->writeElement("css-filename", $this->getCssFileName());
     $XMLViewDoc->endElement();
 }
开发者ID:OlivierGeorgeon,项目名称:ernest-trace-player,代码行数:17,代码来源:ViewInfos.inc.php

示例7: create_rss

/**
 * Create RSS Feed
 * @param entries
 * @param config
 */
function create_rss($entries, $config)
{
    // Inspired from http://www.phpntips.com/xmlwriter-2009-06/
    $xml = new XMLWriter();
    // Output directly to the user
    $xml->openURI('php://output');
    $xml->startDocument('1.0');
    $xml->setIndent(2);
    //rss
    $xml->startElement('rss');
    $xml->writeAttribute('version', '2.0');
    $xml->writeAttribute('xmlns:atom', 'http://www.w3.org/2005/Atom');
    //channel
    $xml->startElement('channel');
    // title, desc, link, date
    $xml->writeElement('title', $config['title']);
    // $xml->writeElement('description', $config['description']);
    // $xml->writeElement('link', 'http://www.example.com/rss.hml');
    $xml->writeElement('pubDate', date('r'));
    if (!empty($entries)) {
        foreach ($entries as $entry) {
            // item
            $xml->startElement('item');
            $xml->writeElement('title', $entry->title);
            if (isset($entry->permalink)) {
                $xml->writeElement('link', $entry->permalink);
            }
            $xml->startElement('description');
            $xml->writeCData($entry->content);
            $xml->endElement();
            $xml->writeElement('pubDate', date('r', strtotime($entry->date)));
            // category
            // $xml->startElement('category');
            // $xml->writeAttribute('domain', 'http://www.example.com/cat1.htm');
            // $xml->text('News');
            // $xml->endElement();
            // end item
            $xml->endElement();
        }
    }
    // end channel
    $xml->endElement();
    // end rss
    $xml->endElement();
    // end doc
    $xml->endDocument();
    // flush
    $xml->flush();
}
开发者ID:Aldarone,项目名称:shaarli-river,代码行数:54,代码来源:create_rss.php

示例8: writePackageMetaData

 /**
  * Write metadata for the given package into a Package.xml file.
  *
  * @param \F3\FLOW3\Package\PackageInterface $package The package - also contains information about where to write the Package meta file
  * @param \F3\FLOW3\Package\MetaDataInterface $meta The MetaData object containing the information to write
  * @return boolean If writing the XML file was successful returns TRUE, otherwise FALSE
  * @author Christopher Hlubek <hlubek@networkteam.com>
  * @author Robert Lemke <robert@typo3.org>
  */
 public function writePackageMetaData(\F3\FLOW3\Package\PackageInterface $package, \F3\FLOW3\Package\MetaDataInterface $meta)
 {
     $xml = new \XMLWriter();
     if ($xml->openURI($package->getMetaPath() . 'Package.xml') === FALSE) {
         return FALSE;
     }
     $xml->setIndent(true);
     $xml->setIndentString(chr(9));
     $xml->startDocument('1.0', 'utf-8', 'yes');
     $xml->startElement('package');
     $xml->writeAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance');
     $xml->writeAttribute('xmlns', 'http://typo3.org/ns/2008/flow3/package');
     $xml->writeAttribute('version', '1.0');
     $xml->writeElement('key', $meta->getPackageKey());
     $xml->writeElement('title', $meta->getTitle());
     $xml->writeElement('description', $meta->getDescription());
     $xml->writeElement('version', $meta->getVersion());
     if (count($meta->getCategories())) {
         $xml->startElement('categories');
         foreach ($meta->getCategories() as $category) {
             $xml->writeElement('category', $category);
         }
         $xml->endElement();
     }
     if (count($meta->getParties())) {
         $xml->startElement('parties');
         foreach ($meta->getParties() as $party) {
             $this->writeParty($xml, $party);
         }
         $xml->endElement();
     }
     if (count($meta->getConstraints())) {
         $xml->startElement('constraints');
         foreach ($meta->getConstraintTypes() as $constraintType) {
             $constraints = $meta->getConstraintsByType($constraintType);
             if (count($constraints)) {
                 $xml->startElement($constraintType);
                 foreach ($constraints as $constraint) {
                     $this->writeConstraint($xml, $constraint);
                 }
                 $xml->endElement();
             }
         }
         $xml->endElement();
     }
     $xml->endElement();
     return TRUE;
 }
开发者ID:kdambekalns,项目名称:framework-benchs,代码行数:57,代码来源:XmlWriter.php

示例9: write_major_file

function write_major_file($code, $data, $type)
{
    $pointer = new XMLWriter();
    $time = strftime("%Y-%m-%d %H:%m:%S");
    foreach (array_keys($data) as $group) {
        echo "writing major xml files for: {$group}\n";
        $dir = realpath(dirname(dirname(__FILE__)) . "/modules") . "/isco_{$code}/modules/" . "isco_{$code}_major_{$group}";
        if (!is_dir($dir)) {
            if (!mkdir($dir, 0777, TRUE)) {
                echo "Couldn't make {$dir}!";
                exit(1);
            }
        }
        $pointer->openURI("file://{$dir}/majorgroup" . $group . ".xml");
        xml_header($pointer, $code, $group);
        foreach ($type as $i => $level) {
            write_group($pointer, $i, $level, $code, $group, $data[$group], $time, $type);
        }
        xml_footer($pointer);
        $pointer->flush();
    }
}
开发者ID:apelon-ohie,项目名称:ihris-site,代码行数:22,代码来源:xmlmaker.php

示例10: saveToFile

 /**
  * @param string $fileToSave
  * @param int $offsetStart
  * @param number $limit
  * @param null | string $suffix
  *
  * @return string
  */
 protected function saveToFile($fileToSave, $offsetStart, $limit, $suffix = null)
 {
     $writer = new \XMLWriter();
     $path = pathinfo($fileToSave);
     $filePath = $path['dirname'] . '/' . $path['filename'];
     if (!is_null($suffix)) {
         $filePath .= self::SEPERATOR . $suffix;
     }
     if (empty($path['extension'])) {
         $filePath .= self::XML_EXT;
     } else {
         $filePath .= '.' . $path['extension'];
     }
     $writer->openURI($filePath);
     $writer->startDocument('1.0', 'UTF-8');
     $writer->setIndent(true);
     $writer->startElement('urlset');
     $writer->writeAttribute('xmlns', self::SCHEMA);
     /* @var $item SitemapItemInterface */
     for ($i = $offsetStart; $i < count($this->items) && $i < $limit; $i++) {
         $item = $this->items[$i];
         $writer->startElement('url');
         $writer->writeElement('loc', $item->getLocation());
         if (!is_null($priority = $item->getPriority())) {
             $writer->writeElement('priority', $priority);
         }
         if (!is_null($freq = $item->getChangeFrequency())) {
             $writer->writeElement('changefreq', $freq);
         }
         if (!is_null($lastmod = $item->getLastModified())) {
             $writer->writeElement('lastmod', $lastmod);
         }
         $writer->endElement();
     }
     $writer->endElement();
     $writer->endDocument();
     return $filePath;
 }
开发者ID:spalax,项目名称:sitemap-generator,代码行数:46,代码来源:Sitemap.php

示例11: out_Xml

function out_Xml($result)
{
    header('Content-Type:text/xml');
    $writer = new XMLWriter();
    $writer->openURI('php://output');
    $writer->startDocument('1.0', 'UTF-8');
    $writer->startElement('Categories');
    $parent_id = null;
    foreach ($result as $category) {
        if ($category['parent'] == null && $category['_id'] != $parent_id) {
            if ($parent_id) {
                $writer->endElement();
                // Children
                $writer->endElement();
                // Category
            }
            $parent_id = $category['_id'];
            $writer->startElement('Category');
            $writer->writeElement('label', $category['label']);
            $writer->writeElement('short_label', $category['short_label']);
            $writer->startElement('Children');
        } else {
            $writer->startElement('Category');
            $writer->writeElement('label', $category['label']);
            $writer->writeElement('short_label', $category['short_label']);
            $writer->endElement();
        }
    }
    $writer->endElement();
    // Children
    $writer->endElement();
    // Category
    $writer->endElement();
    // Categories
    $writer->endDocument();
}
开发者ID:aventurella,项目名称:Galaxy,代码行数:36,代码来源:categories.php

示例12: simpleXML

 /**
  * Test method
  */
 public function simpleXML()
 {
     $writer = new XMLWriter();
     $writer->openURI('test.xml');
     //$writer->openURI('php://output');
     $writer->startDocument('1.0', 'UTF-8');
     $writer->setIndent(4);
     $writer->startElement('test');
     $writer->writeElement('blop', 'blupblup');
     $writer->endElement();
     $writer->endDocument();
     $writer->flush();
 }
开发者ID:archi-strasbourg,项目名称:archi-wiki,代码行数:16,代码来源:Convertor.php

示例13: array

    $t_result = array();
}
$t_filename = "exported_issues.xml";
# Send headers to browser to activate mime loading
# Make sure that IE can download the attachments under https.
header('Pragma: public');
header('Content-Type: text/xml; name=' . $t_filename);
header('Content-Transfer-Encoding: BASE64;');
# Added Quotes (") around file name.
header('Content-Disposition: attachment; filename="' . $t_filename . '"');
$t_version = MANTIS_VERSION;
$t_url = config_get('path');
$t_bug_link = config_get('bug_link_tag');
$t_bugnote_link = config_get('bugnote_link_tag');
$writer = new XMLWriter();
$writer->openURI('php://output');
$writer->setIndent(true);
$writer->setIndentString('    ');
$writer->startDocument('1.0', 'UTF-8');
$writer->startElement('mantis');
$writer->writeAttribute('version', $t_version);
$writer->writeAttribute('urlbase', $t_url);
$writer->writeAttribute('issuelink', $t_bug_link);
$writer->writeAttribute('notelink', $t_bugnote_link);
$writer->writeAttribute('format', '1');
# Ignored fields, these will be skipped
$t_ignore = array('_stats', 'bug_text_id');
/* properties that we want to export are 'protected' */
$t_columns = array_keys(getClassProperties('BugData', 'protected'));
# export the rows
foreach ($t_result as $t_row) {
开发者ID:N0ctrnl,项目名称:mantisbt,代码行数:31,代码来源:export.php

示例14: array

            $matched = true;
            if (!isset($tracker[$id])) {
                $tracker[$id] = array();
            }
            if (!isset($tracker[$id][$file])) {
                $tracker[$id][$file] = array();
            }
            $tracker[$id][$file][] = $line;
        } while (0);
        //echo "$file:$line uses $namespace.$directive\n";
    }
}
echo "\n{$counter}/{$full_counter} instances of \$config or \$this->config found in source code.\n";
echo "Generating XML... ";
$xw = new XMLWriter();
$xw->openURI('../configdoc/usage.xml');
$xw->setIndent(true);
$xw->startDocument('1.0', 'UTF-8');
$xw->startElement('usage');
foreach ($tracker as $id => $files) {
    $xw->startElement('directive');
    $xw->writeAttribute('id', $id);
    foreach ($files as $file => $lines) {
        $xw->startElement('file');
        $xw->writeAttribute('name', $file);
        foreach ($lines as $line) {
            $xw->writeElement('line', $line);
        }
        $xw->endElement();
    }
    $xw->endElement();
开发者ID:artbypravesh,项目名称:morningpages,代码行数:31,代码来源:config-scanner.php

示例15: export

 public function export($v92ec19ffde05e15769b1bb3ee05ad745)
 {
     set_time_limit(0);
     if (!count($v92ec19ffde05e15769b1bb3ee05ad745)) {
         $v8be74552df93e31bbdd6b36ed74bdb6a = new selector('pages');
         $v8be74552df93e31bbdd6b36ed74bdb6a->where('hierarchy')->page(0)->childs(0);
         $v92ec19ffde05e15769b1bb3ee05ad745 = $v8be74552df93e31bbdd6b36ed74bdb6a->result;
     }
     if (getRequest('as_file') === '0') {
         $ved780287e302ec3b9fd3c5e78771919f = new xmlExporter($this->getSourceName());
         $ved780287e302ec3b9fd3c5e78771919f->addBranches($v92ec19ffde05e15769b1bb3ee05ad745);
         $result = $ved780287e302ec3b9fd3c5e78771919f->execute();
         return $result->saveXML();
     }
     $v857a5246dff0c3c79e476b004684f6d3 = "./sys-temp/export/";
     $vb80bb7740288fda1f201890375a60c8f = getRequest('param0');
     $v97fd815a3803a0588876bdd862014fed = $v857a5246dff0c3c79e476b004684f6d3 . $vb80bb7740288fda1f201890375a60c8f . "." . parent::getFileExt();
     $v6990a54322d9232390a784c5c9247dd6 = $v857a5246dff0c3c79e476b004684f6d3 . $vb80bb7740288fda1f201890375a60c8f;
     if (!is_dir($v6990a54322d9232390a784c5c9247dd6)) {
         mkdir($v6990a54322d9232390a784c5c9247dd6, 0777, true);
     }
     if (file_exists($v97fd815a3803a0588876bdd862014fed) && !file_exists(CURRENT_WORKING_DIR . '/sys-temp/runtime-cache/' . md5($this->getSourceName()))) {
         unlink($v97fd815a3803a0588876bdd862014fed);
     }
     if ($v92ec19ffde05e15769b1bb3ee05ad745) {
         $v33030abc929f083da5f6c3f755b46034 = array('./tpls/', './xsltTpls/', './css/', './js/', './usels/', './umaps/', './templates/');
         foreach ($v33030abc929f083da5f6c3f755b46034 as $v100664c6e2c0333b19a729f2f3ddb7dd) {
             if (is_dir($v100664c6e2c0333b19a729f2f3ddb7dd)) {
                 $v736007832d2167baaae763fd3a3f3cf1 = new umiDirectory($v100664c6e2c0333b19a729f2f3ddb7dd);
                 $v45b963397aa40d4a0063e0d85e4fe7a1 = $v736007832d2167baaae763fd3a3f3cf1->getAllFiles(1);
                 foreach ($v45b963397aa40d4a0063e0d85e4fe7a1 as $vd6fe1d0be6347b8ef2427fa629c04485 => $vb068931cc450442b63f5b3d276ea4297) {
                     $v8c7dd922ad47494fc02c388e12c00eac = new umiFile($vd6fe1d0be6347b8ef2427fa629c04485);
                     if (!is_dir($v6990a54322d9232390a784c5c9247dd6 . ltrim($v8c7dd922ad47494fc02c388e12c00eac->getDirName(), '.'))) {
                         mkdir($v6990a54322d9232390a784c5c9247dd6 . ltrim($v8c7dd922ad47494fc02c388e12c00eac->getDirName(), '.'), 0777, true);
                     }
                     copy($v8c7dd922ad47494fc02c388e12c00eac->getFilePath(), $v6990a54322d9232390a784c5c9247dd6 . $v8c7dd922ad47494fc02c388e12c00eac->getFilePath(true));
                 }
             }
         }
     }
     $v71b70dd1e455c477220693d84ccd5682 = $v97fd815a3803a0588876bdd862014fed . '.tmp';
     $v480d1b61a0432d1319f7504a3d7318dd = (int) mainConfiguration::getInstance()->get("modules", "exchange.export.limit");
     if ($v480d1b61a0432d1319f7504a3d7318dd <= 0) {
         $v480d1b61a0432d1319f7504a3d7318dd = 25;
     }
     $ved780287e302ec3b9fd3c5e78771919f = new xmlExporter($this->getSourceName(), $v480d1b61a0432d1319f7504a3d7318dd);
     $ved780287e302ec3b9fd3c5e78771919f->addBranches($v92ec19ffde05e15769b1bb3ee05ad745);
     $vdd988cfd769c9f7fbd795a0f5da8e751 = $ved780287e302ec3b9fd3c5e78771919f->execute();
     if (file_exists($v97fd815a3803a0588876bdd862014fed)) {
         $v1de9b0a30075ae8c303eb420c103c320 = new XMLReader();
         $va82feee3cc1af8bcabda979e8775ef0f = new XMLWriter();
         $v1de9b0a30075ae8c303eb420c103c320->open($v97fd815a3803a0588876bdd862014fed);
         $va82feee3cc1af8bcabda979e8775ef0f->openURI($v71b70dd1e455c477220693d84ccd5682);
         $va82feee3cc1af8bcabda979e8775ef0f->startDocument('1.0', 'utf-8');
         $va82feee3cc1af8bcabda979e8775ef0f->startElement('umidump');
         $va82feee3cc1af8bcabda979e8775ef0f->writeAttribute('version', '2.0');
         $va82feee3cc1af8bcabda979e8775ef0f->writeAttribute('xmlns:xlink', 'http://www.w3.org/TR/xlink');
         $v7aa28ed115707345d0274032757e8991 = $v1de9b0a30075ae8c303eb420c103c320->read();
         while ($v7aa28ed115707345d0274032757e8991) {
             if ($v1de9b0a30075ae8c303eb420c103c320->nodeType == XMLReader::ELEMENT) {
                 $ve24455211a964330063a18670d943835 = $v1de9b0a30075ae8c303eb420c103c320->name;
                 if ($ve24455211a964330063a18670d943835 != 'umidump') {
                     $va82feee3cc1af8bcabda979e8775ef0f->startElement($ve24455211a964330063a18670d943835);
                     if ($ve24455211a964330063a18670d943835 != 'meta') {
                         if (!$v1de9b0a30075ae8c303eb420c103c320->isEmptyElement) {
                             $v7852ddca47412c0d947ebf27eb83ed3a = $v1de9b0a30075ae8c303eb420c103c320->read();
                             while ($v7852ddca47412c0d947ebf27eb83ed3a) {
                                 if ($v1de9b0a30075ae8c303eb420c103c320->nodeType == XMLReader::ELEMENT) {
                                     $vcf7f5c76225a101e6320a96c02f92fc1 = $v1de9b0a30075ae8c303eb420c103c320->name;
                                     $va82feee3cc1af8bcabda979e8775ef0f->writeRaw($v1de9b0a30075ae8c303eb420c103c320->readOuterXML());
                                     $v7852ddca47412c0d947ebf27eb83ed3a = $v1de9b0a30075ae8c303eb420c103c320->next();
                                 } elseif ($v1de9b0a30075ae8c303eb420c103c320->nodeType == XMLReader::END_ELEMENT && $v1de9b0a30075ae8c303eb420c103c320->name == $ve24455211a964330063a18670d943835) {
                                     $v7852ddca47412c0d947ebf27eb83ed3a = false;
                                 } else {
                                     $v7852ddca47412c0d947ebf27eb83ed3a = $v1de9b0a30075ae8c303eb420c103c320->next();
                                 }
                             }
                         }
                         if ($vdd988cfd769c9f7fbd795a0f5da8e751->getElementsByTagName($ve24455211a964330063a18670d943835)->item(0)->hasChildNodes()) {
                             $v268184c12df027f536154d099d497b31 = $vdd988cfd769c9f7fbd795a0f5da8e751->getElementsByTagName($ve24455211a964330063a18670d943835)->item(0)->childNodes;
                             foreach ($v268184c12df027f536154d099d497b31 as $v1b7d5726533ab525a8760351e9b5e415) {
                                 $va5e171f642af8e3bd24c50cdc4d66fe3 = new DOMDocument();
                                 $va5e171f642af8e3bd24c50cdc4d66fe3->formatOutput = true;
                                 $v36c4536996ca5615dcf9911f068786dc = $va5e171f642af8e3bd24c50cdc4d66fe3->importNode($v1b7d5726533ab525a8760351e9b5e415, true);
                                 $va5e171f642af8e3bd24c50cdc4d66fe3->appendChild($v36c4536996ca5615dcf9911f068786dc);
                                 $va82feee3cc1af8bcabda979e8775ef0f->writeRaw($va5e171f642af8e3bd24c50cdc4d66fe3->saveXML($v36c4536996ca5615dcf9911f068786dc, LIBXML_NOXMLDECL));
                             }
                         }
                     } elseif ($ve24455211a964330063a18670d943835 == 'meta') {
                         $va82feee3cc1af8bcabda979e8775ef0f->writeRaw($v1de9b0a30075ae8c303eb420c103c320->readInnerXML());
                         $v92ec19ffde05e15769b1bb3ee05ad745 = $vdd988cfd769c9f7fbd795a0f5da8e751->getElementsByTagName('branches');
                         if ($v92ec19ffde05e15769b1bb3ee05ad745->item(0)) {
                             $va82feee3cc1af8bcabda979e8775ef0f->writeRaw($vdd988cfd769c9f7fbd795a0f5da8e751->saveXML($v92ec19ffde05e15769b1bb3ee05ad745->item(0), LIBXML_NOXMLDECL));
                         }
                     }
                     $va82feee3cc1af8bcabda979e8775ef0f->fullEndElement();
                     $v7aa28ed115707345d0274032757e8991 = $v1de9b0a30075ae8c303eb420c103c320->next();
                     continue;
                 }
             }
//.........这里部分代码省略.........
开发者ID:BGCX261,项目名称:zimmerli-svn-to-git,代码行数:101,代码来源:transferExporter.php


注:本文中的XMLWriter::openURI方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。