W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2005

Modify File Entity Reference child node and its attribute

From: Dave Maung <dmaung1@yahoo.com>
Date: Thu, 4 Aug 2005 11:26:25 -0700 (PDT)
Message-ID: <20050804182625.6067.qmail@web54703.mail.yahoo.com>
To: www-dom@w3.org

Is there way to make File Entity Reference children to
be modifiable? 
My xml has external xml file
<!DOCTYPE reporter PUBLIC "-//CEB//DTD Reporter XML
V1.0//EN"
 "my.dtd" [
<!ENTITY external SYSTEM "external.xml">

]>
<root>
&external
</root>



external.xml has 
<external>
  <name>external</name>
</external>



Node externalNode = externalNode.getFirstChild();
externalNode.setAttribute("id","external"); //doesnt
work got the below error



org.w3c.dom.DOMException: NO_MODIFICATION_ALLOWED_ERR:
An attempt is made to modify an object where
modifications are not allowed.
	at
org.apache.xerces.dom.ElementImpl.setAttribute(Unknown
Source)
	
Thanks for the help
Dave
Received on Friday, 5 August 2005 12:03:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:58 GMT