Abstract:Starting with the coding feature of the XML,this paper presented a new algorithm for the digital watermarking based on XML.The display effectiveness and the length of document are not changed by the algorithm,but watermarking can not easily be detected an