Do you always have to have a root node with xml/xsd?

后端 未结 5 961
抹茶落季
抹茶落季 2020-12-03 11:49

Been looking at a tutorial and it has the following xml and xsd.:

\"http://yfrog.com/b9xsdandxmlj\"

Wha

5条回答
  •  悲哀的现实
    2020-12-03 12:30

    Yes, you always have to have a root node. However, you can have a file that holds an XML document fragment that is imported into another file as a parsed entity. All the including file needs to do is have a declaration like this in its DTD:

    
    

    Then it can just wrap it up like this:

    
       &SomeName;
    
    

提交回复
热议问题