If all you have as the value is a String it is better to use
setAttribute(String name, String value) because the DOM implementation
may optimize the storage (ours does :-).
Otherwise, simply changing appendChild to setAttributeNode would solve
your problem.
-- 
Arnaud  Le Hors - IBM Cupertino, XML Strategy Group

Reply via email to