Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Showing XML file in Tree Format in a new View
Showing XML file in Tree Format in a new View [message #241373] Fri, 14 May 2004 05:32 Go to next message
Eclipse UserFriend
Hi,
anyone have any idea about how to do this.
I am having an xml file. It contains several number of
Elements,Attributes,ChildElements and ChildAttributes and so on .... I
want to show all these Elements,Attributes,ChildElements, ChildAttributes
in a new view with tree structure.

Before displaying the tree in a view, i want to give some preferences
which Elements and Attributes i want to show. While showing the new view
it must load the xml file and display the data in tree structure.

Somewhat like this:

-Root
-Parent1
-Child1
-subChild1
-......
-....
-Parent2
-Child2
-Parent3
-............

Any one already done, give me ur suggestions,
thanks in advance

kumar
Re: Showing XML file in Tree Format in a new View [message #241474 is a reply to message #241373] Fri, 14 May 2004 11:56 Go to previous message
Eclipse UserFriend
Originally posted by: ashutosh.Osellus.com

If you simple want to see it the way an XML file is shown in IE or other
browsers, you could simply open the "browser view" example (packed with
3.0's) and simple open that xml file (browser.setURL(./testXML.xml)).

See examples at
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/dev.html#snippets
-> Browser .

This might not be what you want but thats just my 2 cents.

-Ashutosh / Ash

kiran wrote:

> Hi,
> anyone have any idea about how to do this.
> I am having an xml file. It contains several number of
> Elements,Attributes,ChildElements and ChildAttributes and so on .... I
> want to show all these Elements,Attributes,ChildElements, ChildAttributes
> in a new view with tree structure.

> Before displaying the tree in a view, i want to give some preferences
> which Elements and Attributes i want to show. While showing the new view
> it must load the xml file and display the data in tree structure.

> Somewhat like this:

> -Root
> -Parent1
> -Child1
> -subChild1
> -......
> -....
> -Parent2
> -Child2
> -Parent3
> -............

> Any one already done, give me ur suggestions,
> thanks in advance

> kumar
Previous Topic:Madness with perspectives!! (Newbie, please help)
Next Topic:Using workspace (org.eclipse.core.resources) standalone
Goto Forum:
  


Current Time: Wed Sep 10 12:59:18 EDT 2025

Powered by FUDForum. Page generated in 0.08111 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top