Showing XML file in Tree Format in a new View [message #241373] |
Fri, 14 May 2004 05:32  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03195 seconds