Entity Reference node

Goldi <[email protected]>
Newsgroups gmane.text.xml.batik.user
Message-ID <[email protected]>
Hello

I have been trying to add entity reference node to an element
Can any body please guide me how to do that
My code is as follows

Attr attr = doc.createAttributeNS("http://www.w3.org/2000/svg", "style");





 org.w3c.dom.EntityReference er = doc.createEntityReference("background");


attr.appendChild(attr);



elem.setAttributeNode(attr);


Is it not the correct way to attach entity reference node?


Rgds

Goldi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.