Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. About controlling the format of the nodes of an XML file

About controlling the format of the nodes of an XML file

Scheduled Pinned Locked Moved XML / XSL
csharpxmlquestiontutorial
9 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rocky
    wrote on last edited by
    #1

    hi is there any facility in XSL or anything that allows us to control the way an XML document is displayed in the webbrowser. what I wanna do is to expand all nodes and collapse all nodes when I click a button in my windows application. I'm using C# .NET 1.1 How can i make all nodes collapse? If there is a way to do it then plz guide me otherwise plz let me know if there isnt any way like this Thanks Rocky

    G 1 Reply Last reply
    0
    • R Rocky

      hi is there any facility in XSL or anything that allows us to control the way an XML document is displayed in the webbrowser. what I wanna do is to expand all nodes and collapse all nodes when I click a button in my windows application. I'm using C# .NET 1.1 How can i make all nodes collapse? If there is a way to do it then plz guide me otherwise plz let me know if there isnt any way like this Thanks Rocky

      G Offline
      G Offline
      George L Jackson
      wrote on last edited by
      #2

      IE has a default stylesheet that does exactly that: http://www.perfectxml.com/articles/xml/XSLTInMSXML.asp[^]. However, XML is basically a data container. You need to transform it using XSLT to HTML, and use DHTML and CSS to achieve what you desire.

      "We make a living by what we get, we make a life by what we give." --Winston Churchill

      R 3 Replies Last reply
      0
      • G George L Jackson

        IE has a default stylesheet that does exactly that: http://www.perfectxml.com/articles/xml/XSLTInMSXML.asp[^]. However, XML is basically a data container. You need to transform it using XSLT to HTML, and use DHTML and CSS to achieve what you desire.

        "We make a living by what we get, we make a life by what we give." --Winston Churchill

        R Offline
        R Offline
        Rocky
        wrote on last edited by
        #3

        Thanks for ur help but the URL gave me this... so can u plz correct this, We're sorry, the page you requested can't be found on www.PerfectXML.com. We're sorry, the page you requested can't be found on www.PerfectXML.com. If you typed the URL yourself, please make sure that the spelling is correct. If you clicked on a link to get here, there may be a problem with the link. Try using your browser's "back" button to choose a different link on that page, or use the following links to find what you are looking for: Rocky

        1 Reply Last reply
        0
        • G George L Jackson

          IE has a default stylesheet that does exactly that: http://www.perfectxml.com/articles/xml/XSLTInMSXML.asp[^]. However, XML is basically a data container. You need to transform it using XSLT to HTML, and use DHTML and CSS to achieve what you desire.

          "We make a living by what we get, we make a life by what we give." --Winston Churchill

          R Offline
          R Offline
          Rocky
          wrote on last edited by
          #4

          oh well I got that page now... when i searched on tht website. http://www.perfectxml.com/articles/xml/XSLTInMSXML.asp[^] stragely enough that the same URL!! Anyyyway

          1 Reply Last reply
          0
          • G George L Jackson

            IE has a default stylesheet that does exactly that: http://www.perfectxml.com/articles/xml/XSLTInMSXML.asp[^]. However, XML is basically a data container. You need to transform it using XSLT to HTML, and use DHTML and CSS to achieve what you desire.

            "We make a living by what we get, we make a life by what we give." --Winston Churchill

            R Offline
            R Offline
            Rocky
            wrote on last edited by
            #5

            well I still havent been able to get the job done and I leanred that it can be done some how thru Javascript and DHTML but the default XSL file is quiet complicated. Can u plz show me a way out of that.

            G 1 Reply Last reply
            0
            • R Rocky

              well I still havent been able to get the job done and I leanred that it can be done some how thru Javascript and DHTML but the default XSL file is quiet complicated. Can u plz show me a way out of that.

              G Offline
              G Offline
              George L Jackson
              wrote on last edited by
              #6

              Sorry, this is just a forum, and I just assist with giving you some help and direction and not coding your project. There are a lot of DHTML/Javascript sites available that provide code that may apply to your requirements. However, this may require some learning and coding on your part.

              "We make a living by what we get, we make a life by what we give." --Winston Churchill

              R 1 Reply Last reply
              0
              • G George L Jackson

                Sorry, this is just a forum, and I just assist with giving you some help and direction and not coding your project. There are a lot of DHTML/Javascript sites available that provide code that may apply to your requirements. However, this may require some learning and coding on your part.

                "We make a living by what we get, we make a life by what we give." --Winston Churchill

                R Offline
                R Offline
                Rocky
                wrote on last edited by
                #7

                Its ok, dont give me any code. all i need is a little example or clue thats it.

                G 1 Reply Last reply
                0
                • R Rocky

                  Its ok, dont give me any code. all i need is a little example or clue thats it.

                  G Offline
                  G Offline
                  George L Jackson
                  wrote on last edited by
                  #8

                  Please study the following: http://www.biglist.com/lists/xsl-list/archives/200003/msg00769.html[^]. Otherwise, search the web for "DHTML" and "tree nodes".

                  "We make a living by what we get, we make a life by what we give." --Winston Churchill

                  R 1 Reply Last reply
                  0
                  • G George L Jackson

                    Please study the following: http://www.biglist.com/lists/xsl-list/archives/200003/msg00769.html[^]. Otherwise, search the web for "DHTML" and "tree nodes".

                    "We make a living by what we get, we make a life by what we give." --Winston Churchill

                    R Offline
                    R Offline
                    Rocky
                    wrote on last edited by
                    #9

                    Yea I'm on this document already and still looking for some serious Output

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups