Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question: browse xml with IE

Status
Not open for further replies.

olin

Technical User
Jun 6, 2003
67
US
I like saving all kinds of data in xml format with my own tag names. I use IE to browse them. My question is: I found it would be much better if IE did not expand all levels of data when open the file, i.e. only show root element or first level element and allow me to click to unfold to show the child elements within it.

Do you happen to know how to tweak some settings to let IE behaves like this? Thank you very much!

 
[1] All you probably need to know to start:
[2] In particular, you can discover the default stylesheet coded as a resource in the dll by enter at address bar:
[tt] res://msxml3.dll/defaultss.xsl[/tt]
and you'll discover that it is still in the legacy/proprietary working draft (wd-xsl).
[3] I suspect you might not envisage to replace the resource by some resource editor but you own stylesheet setting...
[4] The easier approach may be to save the default and work on it, modifying it.
[4.1] Probably you've to port it to xslt1.0 to stay up to date in standard and change settings therefrom. (There is a version in the ref link. (But, it seems it is not flawless.)
[4.2] After you're happy with the change, you can put the processing instruction to xml document pointing to your default stylesheet.
[tt] <?xml-stylesheet href="[blue]yourdefault.xsl[/blue]" type="text/xsl" ?>[/tt]
 
Thank you for pointing out a way! I used a resource hack tool to view msxml3.dll resources and find the xsl it uses. I might modify the content to what I want.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top