使用的xml文档如下
- <?xml version="1.0" encoding="UTF-8"?>
- <SearchConstraints>
- <Begin>glucose</Begin>
- <End>Ethanol</End>
- <Interface>name</Interface>
- <IntermediatesInclude number="0"></IntermediatesInclude>
- <IntermediatesExclude> number="0"></IntermediatesExclude>
- <Organisms type="all"></Organisms>
- <KShort>10</KShort>
- </SearchConstraints>
- <StoPList>
- <StoP>
- <Source id="glucose"></Source>
- <Target id="Ethanol"></Target>
- <RouteList>
- </RouteList>
- </StoP>
- </StoPList>
问题所在:没有加根标签呀!XML文件只能有一个根标签!
把xml改成下面这样就ok了,也就是加一个Document标签,将先前的两个根标签SearchConstraints和StoPList都放到Document标签的下面,从而整个XML文件只有一个根标签。
- <?xml version="1.0" encoding="UTF-8"?>
- <Document>
- <SearchConstraints>
- <Begin>glucose</Begin>
- <End>Ethanol</End>
- <Interface>name</Interface>
- <IntermediatesInclude number="0"></IntermediatesInclude>
- <IntermediatesExclude> number="0"></IntermediatesExclude>
- <Organisms type="all"></Organisms>
- <KShort>10</KShort>
- </SearchConstraints>
- <StoPList>
- <StoP>
- <Source id="glucose"></Source>
- <Target id="Ethanol"></Target>
- <RouteList>
- </RouteList>
- </StoP>
- </StoPList>
- </Document>
相关推荐
使用XMLDocument操作xml文件,很完整的基础操作。
XML 文件翻译工具 Xml Content Translator 中文版 XML 文件翻译工具 Xml Content Translator 中文版 XML Contents Translator 特色: 便携式应用程序的便利性 由于该产品是便携式的,因此不需要安装过程。这意味...
如何用Document解析XML文件
生成XML文件ABAP程序 REPORT zams_xml_dom_create . TYPE-POOLS: ixml. CLASS cl_ixml DEFINITION LOAD. TYPES: BEGIN OF xml_line, data(256) TYPE x, END OF xml_line. DATA: l_ixml TYPE REF TO if_ixml, ...
pull解析xml文件,和sax和dom一样 都可以脱离android单独使用,pull和sax的原理一样,不一样的地方是pull读取xml文件后调用方法返回的是数字, 读取到xml的声明返回数字0 START_DOCUMENT; 读取到xml的结束返回数字1 ...
1. VS2010的单元测试coverage文件无法通过命令行转换为xml文件。 2. 这里C#代码,读取coverage文件,然后转换为xml文件,非常简单。 converage2xlm的用法: Transform the coverage file to xml file. Coverage2xml...
The Lancaster Corpus of Mandarin Chinese (LCMC) is ... The XML structure of the corpus was validated using the parser built in Xaira. Part-of-speech tagging of all aspect markers was manually checked.
纯html标签静态调用xml文件并显示,不包含js方法。 以及xsl对xml文件的的显示修饰方法
介绍了web.xml文件中各个标签所起到的作用
* @desc Covert the files on the website to one XML,where excluede the special file extend name * @example $my_web2xml = new C_Web2XML('/bbs','bbs.xml');$my_web2xml->Set_FileExtendFiler('exe|rar|zip'...
C__读写XML文件_xmlDocument,全面落实,赶紧下载吧
简单易懂地介绍C#是如何对XML文件的读写及创建、修改操作的
The Extensible Markup Language (XML) is a subset of SGML that is completely described in this document. Its goal is to enable generic SGML to be served, received, and processed on the Web in the way ...
Qt读写Xml文件,QTreeWidget显示Xml和导出Xml文件
This is the first book that provides a solid theoretical account of the foundation of the popular data format XML. Part I establishes basic concepts, starting with schemas, tree automata and pattern ...
idea设置file mask后缀名的find.xml配置文件。替换位置:C:\用户名\用户账号\AppData\Roaming\JetBrains\IntelliJIdea2021.1\options下。
修复Excel有 XML 错误的 /xl/sharedStrings.xml 已删除的部件: 有 XML 错误的 /xl/sharedStrings.xml。 (字符串) 加载错误。 行 14,列 3595。 等等
represents one of the most structured applications of the typesetting and document markup system developed by Donald Knuth and Leslie Lamport. Over time, the team from CNRI became increasingly ...
C# WinForm 读写XML文件 C# WinForm 读写XML文件
In Week One, he starts from basic syntax, and discusses XML document structure, document types, and the benefits of XML Schema. Week Two covers formatting using either CSS or the Extensible Sytle...