Link to home
Start Free TrialLog in
Avatar of gudii9
gudii9Flag for United States of America

asked on

xml hirarchy

Hi,

I have thousands of lines of XML with root parent, children, sibling, grand parent, great grand parent etc nodes amost 10-20 levels down.

How do i see the XML hirarchy in one stroke rather than closing each and every node and finind the hierarchy in log process. Is there is a view in notepad++ or ecllipse which does show the hierarchical view. please advise
Avatar of gudii9
gudii9
Flag of United States of America image

ASKER

i see outline but when i click on a particular line say 1749 line it is not showing that hierarch in outline exactly. please advise
ASKER CERTIFIED SOLUTION
Avatar of Gerwin Jansen
Gerwin Jansen
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gudii9

ASKER

Notepad++ has an XML tools plugin that you can use to pretty-print your XML file. Would that help?

i use that still i have to scroll up and down multiple times and close multiple upper tags to identify exact XPATH of the element or hierarch of the element.
eclipse and then click on the "design" view tab.

i do not see design tab. I am using RSA 8.5 built on top of eclipse. Not sure why. please advise
So what happens when you open a xml file in RSA? does it simply open in a text editor?
Check your eclipse file associations under preferences and ensure XML files are opened with the eclipse default XL editor.


Alternatively, try installing a simple vanilla version of eclipse?  IBM products are not the best to work with.
Avatar of gudii9

ASKER

outline view does show some hierarchy high level. I wish i have some tool in which i select right click it shows all the path including parent, grand parent , great grand parent etc till room correctly without manually going and chasing to the top?
You may want to have a look at a commercial application like XML Spy from Altova.
I wish i have some tool in which i select right click it shows all the path including parent, grand parent , great grand parent etc till room correctly


Right click what?

'All the path' - what do you mean?

'till room' - what do you mean?
Avatar of gudii9

ASKER

'All the path' - what do you mean?

i mean complete xpath of that particular element which is at say great grand child location(leg then room/furniture/table/leg xpath) of original xml whose root is lets say 'room'
<room>
<furniture>
<table>
<leg>
......
</leg>
still have no idea what your requirement is.

Maybe you can record a video and post it on here to show us what you are doing.