how to check xml data present or not

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AmolYelne
    New Member
    • Feb 2013
    • 8

    how to check xml data present or not

    I have xml file:
    <?xml version="1.0"?>
    -<doc title="test">
    -<Employee>
    <keyName>Amol </keyName>
    <Keyvalue>22</Keyvalue>
    </Employee>
    </doc>

    next time when I run the application and enter keyname John and keyvalue 25 then I want to update my xml file like
    I have xml file:
    <?xml version="1.0"?>
    -<doc title="test">
    -<Employee>
    <keyName>Amol </keyName>
    <Keyvalue>22</Keyvalue>
    </Employee>
    -<Employee>
    <keyName>John </keyName>
    <Keyvalue>25</Keyvalue>
    </Employee>
    </doc>
    It is in vb6.0
    now everything is clear so
    please help me its argent
    Last edited by AmolYelne; Feb 13 '13, 05:33 AM. Reason: extending
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    that solely depends on the programme used.

    of course, you could just look at the code with your eyes to check for it ... *gg*

    Comment

    • AmolYelne
      New Member
      • Feb 2013
      • 8

      #3
      any

      bad answer I am not expecting this from the site

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        so ... my answer is bad because you give me nothing at all to figure out the problem?

        obviously you do not honour the effort someone takes voluntarily doing that kind of work.

        Comment

        • AmolYelne
          New Member
          • Feb 2013
          • 8

          #5
          Any

          now the problem is clear so tell me the solution

          Comment

          • Dormilich
            Recognized Expert Expert
            • Aug 2008
            • 8694

            #6
            why?

            nothing is clear.

            Comment

            • AmolYelne
              New Member
              • Feb 2013
              • 8

              #7
              I have xml file:
              <?xml version="1.0"?>
              -<doc title="test">
              -<Employee>
              <keyName>Amol </keyName>
              <Keyvalue>22</Keyvalue>
              </Employee>
              </doc>

              Amol and 22 are values taken from texboxes
              vext time when I run rue application and enter John and 25 in texbox then want my xml file like following
              <?xml version="1.0"?>
              -<doc title="test">
              -<Employee>
              <keyName>Amol </keyName>
              <Keyvalue>22</Keyvalue>
              </Employee>
              -<Employee>
              <keyName>John </keyName>
              <Keyvalue>25</Keyvalue>
              </Employee>
              My application is in vb6.0
              now all is clear please help me its very argent


              </doc>

              Comment

              • Dormilich
                Recognized Expert Expert
                • Aug 2008
                • 8694

                #8
                moved to VB forum.

                Comment

                • AmolYelne
                  New Member
                  • Feb 2013
                  • 8

                  #9
                  please tell me clearly what to do

                  Comment

                  • Dormilich
                    Recognized Expert Expert
                    • Aug 2008
                    • 8694

                    #10
                    I’m not a VB expert.

                    Comment

                    • AmolYelne
                      New Member
                      • Feb 2013
                      • 8

                      #11
                      ok thank you Dormilich for your valuable time

                      Comment

                      • Rabbit
                        Recognized Expert MVP
                        • Jan 2007
                        • 12517

                        #12
                        In VB6, you can use the MSXML class to read and process XML files. Here is Microsoft's documentation on that class: http://msdn.microsoft.com/en-us/libr...=VS.85%29.aspx

                        Comment

                        • AmolYelne
                          New Member
                          • Feb 2013
                          • 8

                          #13
                          Rabbit I want the code please its argent

                          Comment

                          • Dormilich
                            Recognized Expert Expert
                            • Aug 2008
                            • 8694

                            #14
                            @Amol: we are not a free code writing service.

                            Comment

                            • AmolYelne
                              New Member
                              • Feb 2013
                              • 8

                              #15
                              Ok Dormilich thank you very much

                              Comment

                              Working...