Results 1 to 7 of 7

Thread: Small Help - Please

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2002
    Location
    USA
    Posts
    432

    Arrow Small Help - Please

    OK I have my Program and i want to display the content of an XML File in a Tree View


    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <Message>
    	<Chad>
    		<AdminName>Chad Eckles</AdminName>
    		<To>Chris Andersen</To>
    		<From>Joo Bob</From>
    		<Header>whats Up</Header>
    		<Body>Some Quote Here</Body>
    		<IP>112.123.233.233</IP>
    	</Chad>
    	<John>
    		<AdminName>John Harrison</AdminName>
    		<To>Leo Laport</To>
    		<From>Joo Bob</From>
    		<Header>Whadz up!</Header>
    		<Body>Some Quote Here</Body>
    		<IP>185.136.0.223</IP>
    	</John>
    	<Chris>
    		<AdminName>Jeff Smith</AdminName>
    		<To>Laport</To>
    		<From>Joo Bob</From>
    		<Header>Whadz up!</Header>
    		<Body> some Quote</Body>
    		<IP>185.136.0.223</IP>
    	</Chris>
    </Message>
    that is a piece of the XML File their will be like 200 more names lol but what i need to do is have

    Chad as the RootNode and the others to be Child Nodes and i need this to go threw the hole XML File and to generate the Nodes can someone help me with this please ????

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2002
    Location
    USA
    Posts
    432
    *Bump* Help Please i have no clue what im doing lol

  3. #3
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    Use a loop and look up the XML namespace. Its not that hard. I'll try and whip something up when I go home later.
    Dont gain the world and lose your soul

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2002
    Location
    USA
    Posts
    432
    GOD that WOULD BE SOOOO HELP FULL!!

  5. #5
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    Dont gain the world and lose your soul

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2002
    Location
    USA
    Posts
    432
    Ok that is Basicly what i need only problem is
    (look at image)


    it adds them all as a Root and i need only one Root and the Rest Children perblock


    Example
    Code:
      John
         |
          + -  Kids
         |        |
         |          Mike
         |          Joe
         |          Billy
         |
          + Pets
                |
                  Cat
                  Dog
    I hope you guys can help AND Thanks for the Help I am Realy ThankFul
    Attached Images Attached Images  

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2002
    Location
    USA
    Posts
    432
    *Bump*

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width