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. close all XML nodes by defualt

close all XML nodes by defualt

Scheduled Pinned Locked Moved XML / XSL
xmlquestion
6 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.
  • H Offline
    H Offline
    hamid_m
    wrote on last edited by
    #1

    is there any way or properties that set closed all nodes of an XML file by default? when you open an xml file, it is like as below -[root] -[child] [msg]text1[/msg] -[child] [msg]text1[/msg] -[child] [msg]text1[/msg] [/root] and what i need is the below -[root] +[child] +[child] +[child] [/root] thank you

    G 1 Reply Last reply
    0
    • H hamid_m

      is there any way or properties that set closed all nodes of an XML file by default? when you open an xml file, it is like as below -[root] -[child] [msg]text1[/msg] -[child] [msg]text1[/msg] -[child] [msg]text1[/msg] [/root] and what i need is the below -[root] +[child] +[child] +[child] [/root] thank you

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

      When Internet Explorer displays an XML file, it is uses its default XSLT stylesheet: http://www.perfectxml.com/articles/xml/XSLTInMSXML.asp[^] Here is some information on modifying the default stylesheet: http://www.biglist.com/lists/xsl-list/archives/200202/msg00895.html[^]

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

      H 1 Reply Last reply
      0
      • G George L Jackson

        When Internet Explorer displays an XML file, it is uses its default XSLT stylesheet: http://www.perfectxml.com/articles/xml/XSLTInMSXML.asp[^] Here is some information on modifying the default stylesheet: http://www.biglist.com/lists/xsl-list/archives/200202/msg00895.html[^]

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

        H Offline
        H Offline
        hamid_m
        wrote on last edited by
        #3

        thank you george, but how can i set advanced xslt to my xml file that installed in my customers computer? i create an xml file in c#.net by coding.

        G 1 Reply Last reply
        0
        • H hamid_m

          thank you george, but how can i set advanced xslt to my xml file that installed in my customers computer? i create an xml file in c#.net by coding.

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

          You add the following stylesheet processing instruction to your XML document: <?xml-stylesheet type="text/xsl" href="stylesheet.xsl"?> and you need to install the referenced XSLT stylesheet so that your XML document can find it.

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

          H 1 Reply Last reply
          0
          • G George L Jackson

            You add the following stylesheet processing instruction to your XML document: <?xml-stylesheet type="text/xsl" href="stylesheet.xsl"?> and you need to install the referenced XSLT stylesheet so that your XML document can find it.

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

            H Offline
            H Offline
            hamid_m
            wrote on last edited by
            #5

            thanks but i cant find any xsl template that close all elements by default :(

            G 1 Reply Last reply
            0
            • H hamid_m

              thanks but i cant find any xsl template that close all elements by default :(

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

              The default IE XSLT template actually turns the XML into HTML. Thus the opening anc closing of nodes is controlled by Javascript and/or Cascading Stylesheets (CSS). So, you need to look for DHTML code that displays Tree nodes and you develop a XSLT sheet to transform your XML code. A good place to start would be the default IE XSLT template.

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

              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