You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xml.apache.org by Li Zongliang <le...@gxlu.com.cn> on 2001/12/14 09:41:29 UTC
how to add comment in the head of xml file
Hi all,
I write out XML file using DOM (and xalan ) from my java application, I want to add some comment text in the head of the output file. such as:
<?xml version="1.0" encoding="UTF-8"?>
<!-- this is the comment before the root element -->
<domain name="netguard">
<server name="server1" host="lee"/>
<server name="server2" home="panda">
<service code="gxlu.Loger" name="Test"/>
</server>
</domain>
please tell me how to do.