[jdom-interest] path to root

Benjamin Kopic ben at kopic.org
Wed Oct 10 15:37:40 PDT 2001


I may be missing something, but I think you need this:

Document d = builder.build();
...
Element e = d.getRootElement();


Best regards

Benjamin

> -----Original Message-----
> From: jdom-interest-admin at jdom.org
> [mailto:jdom-interest-admin at jdom.org]On Behalf Of Mark Ayad
> Sent: 10 October 2001 14:55
> To: jdom-interest at jdom.org
> Subject: [jdom-interest] path to root
> 
> 
> 
> Hi everyone,
> 
> when I'm on the dir node test6 is their 
> 
> an easy way to obtain the path to root.
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <dirbuilder>
> 	<dir name="test">
> 		<dir name="test1">
> 			<dir name="test5"></dir>
> 			<dir name="test6"></dir>
> 		</dir>
> 		<dir name="test2">
> 			<dir name="test3"></dir>
> 			<dir name="test4"></dir>
> 		</dir>
> 	</dir>
> </dirbuilder>
> 
> 
> Cheers
> 
> Mark
> 
> 
> 
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/yourad
dr at yourhost.com




More information about the jdom-interest mailing list