<?xml version="1.0" encoding="UTF-8"?>
<dom4j:books xmlns:dom4j="http://www.dom4j.org/" xmlns:AA="http://www.AA.org/">
  <book>
    <title>Dom4j Tutorials</title>
  </book>
</dom4j:books>
 
Adding prefix "dom4j" to "books" element is easy.
But I want give the "book" element prefix of "dom4j", and I didn't find setPrefix method of Element and its parent classes.
 
document.addElement("dom4j:book") is the only way? I don't think it is a good approach.
 
And when I want to change the prefix, how should I do?
Thank you for help in advance.
 
Regards,
Gary.

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Reply via email to