A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
setting the xml child attributes value from parent's attribute value
Joined: Mar 11, 2008
Mar 27, 2008 21:58:00
I am working on xml parsing. My problem is to set the value of one attribute of child from the attribute value of parent. How to do this? Please help me in this concern. Thanks in advance.
S K B<br />SCJP 1.5 (83%)
Joined: Apr 26, 2008
Apr 26, 2008 21:02:00
Just off the top of my head, try having a setter method in your child class set from the parent class. i.e:
this.ThisAttribute = super.ThisAttribute;
I haven't tried to compile or anything. Good luck!
I agree. Here's the link:
subject: setting the xml child attributes value from parent's attribute value
XPath for atrib. name and value of node
setting child attribute from parent attribute
Setting the attribute of child node by parent node attribute value
Deleting child nodes from an xml
PASSED IBM 141-X ML - 76%
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015