Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Tim Cooke
Campbell Ritchie
paul wheaton
Jeanne Boyarsky
Ron McLeod
Sheriffs:
Paul Clapham
Devaka Cooray
Saloon Keepers:
Tim Holloway
Carey Brown
Piet Souris
Bartenders:
Forum:
Java in General
setting the xml child attributes value from parent's attribute value
bappa
Greenhorn
Posts: 15
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi all,
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%)
Nickolas Case
Ranch Hand
Posts: 98
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Just off the top of my head, try having a setter method in your child class set from the parent class. i.e:
public setThisAttribute(){
this.ThisAttribute = super.ThisAttribute;
}
I haven't tried to compile or anything. Good luck!
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
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%
More...