xmind的内部结构由 三部分组成 style.xml comments.xml content.xml $fileList = []; //style.xml文件 $styleFile = './general/styles.xml'; $style = new SimpleXMLElement('<?xml version="1.0" encoding="UTF-8"?> <xmap-styles xmlns:svg="http://www.w3.org/2000/svg" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns="urn:xmind:xmap:xmlns:style:2.0" version="2.0"/>'); $style->asXML($styleFile); //comments.xml文件 $commentsFile = './general/comments.xml'; $comments = new SimpleXMLElement('<?xml version="1.0" encoding="UTF-8"?> <comments xmlns="urn:xmind:xmap:xmlns:comments:2.0" version="2.0"/>'); $comments->asXML($commentsFile); //contents.xml文件 (这个节点可以展开看一下结构,根据里面 sheet topic ) $contentFile = './general/content.xml'; $content = new SimpleXMLElement('<?xml version="1.0" encoding="UTF-8" standalone="no"?><xmap-content xmlns="urn:xmind:xmap:xmlns:content:2.0" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xhtml="http://www.w3.
PHP 生成xmind文件
最新推荐文章于 2024-04-18 23:13:57 发布