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

close all XML nodes by defualt

Scheduled Pinned Locked Moved C#
xmlquestion
9 Posts 4 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? thank you

    G H 2 Replies Last reply
    0
    • H hamid_m

      is there any way or properties that set closed all nodes of an XML file? thank you

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      What do you mean? In what way do you want to "close" the nodes? Are you talking about something that is displaying an xml file?

      --- single minded; short sighted; long gone;

      H 1 Reply Last reply
      0
      • G Guffa

        What do you mean? In what way do you want to "close" the nodes? Are you talking about something that is displaying an xml file?

        --- single minded; short sighted; long gone;

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

        yes, when an xml file displaying

        M 1 Reply Last reply
        0
        • H hamid_m

          yes, when an xml file displaying

          M Offline
          M Offline
          Malcolm Smart
          wrote on last edited by
          #4

          Alt-F4? Alt+Ctrl+Delete? It all depends on which viewer you are using...

          "More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF

          H 1 Reply Last reply
          0
          • M Malcolm Smart

            Alt-F4? Alt+Ctrl+Delete? It all depends on which viewer you are using...

            "More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF

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

            i don't want to close viewer i need all nodes are closed when an xml file open for display 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 below -[root] +[child] +[child] +[child] [/root]

            M 1 Reply Last reply
            0
            • H hamid_m

              i don't want to close viewer i need all nodes are closed when an xml file open for display 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 below -[root] +[child] +[child] +[child] [/root]

              M Offline
              M Offline
              Malcolm Smart
              wrote on last edited by
              #6

              I was being sarcastic. Perhaps if you told us the viewer we could help. Also, what has this to do with C#?

              "More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF

              H 1 Reply Last reply
              0
              • M Malcolm Smart

                I was being sarcastic. Perhaps if you told us the viewer we could help. Also, what has this to do with C#?

                "More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF

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

                i guess there was any properties in xmldocument or other xml classes that close all nodes (maybe you called them Tag) of an xml file when it open by IE or other xml viewers

                P 1 Reply Last reply
                0
                • H hamid_m

                  i guess there was any properties in xmldocument or other xml classes that close all nodes (maybe you called them Tag) of an xml file when it open by IE or other xml viewers

                  P Offline
                  P Offline
                  PIEBALDconsult
                  wrote on last edited by
                  #8

                  It's not a function of the document, it's a function of the viewer; for instance a TreeView has a CollapseAll() method.

                  1 Reply Last reply
                  0
                  • H hamid_m

                    is there any way or properties that set closed all nodes of an XML file? thank you

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

                    at last i fund that it did by xslt file ;)

                    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