Link to home
Start Free TrialLog in
Avatar of AlexFM
AlexFM

asked on

Generate and read XML file

<List>
   <Person Age="40">
       <FirstName>John</FirstName>
       <LastName>Brown</LastName>
       <Children>
           <Son Age="3">
                <Name>Bill</Name>
           </Son>
           <Son Age="5">
                <Name>Jerry</Name>
           </Son>
       </Children>
   </Person>
   <Person Age="35">
       <FirstName>Tom</FirstName>
       <LastName>Robbins</LastName>
       <Children>
           <Son Age="2">
                <Name>Michael</Name>
           </Son>
           <Daughter Age="5">
                <Name>Mary</Name>
           </Daughter>
       </Children>
   </Person>
</List>

I need code to generate this XML using XMLDocument and save it to file. Then I need to load file to XMLDocument and enumerate all nodes.
Avatar of existenz2
existenz2
Flag of Netherlands image

Avatar of AlexFM
AlexFM

ASKER

Thanks, but I want to do this using XMLDocument.
ASKER CERTIFIED SOLUTION
Avatar of existenz2
existenz2
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial