Can XML comments go anywhere?

前端 未结 4 1143
轮回少年
轮回少年 2021-01-07 23:52

I wrote a simple tool to generate a DBUnit XML dataset using queries that the user enters. I want to include each query entered in the XML as a comment, but the DBUnit API

4条回答
  •  既然无缘
    2021-01-08 00:02

    The first example is not valid XML, the declaration has to be the first thing in a XML document.

    But besides that, comments can go anywhere else.

    Correcting your first example:

    
    
    
    
    

提交回复
热议问题