1<?xml version="1.0" encoding="UTF-8"?> 2<out> 3<!-- Create an simplified output tree for each family --> 4 <Families> 5<Smith> 6<Parents> 7<Father>Lew Smith</Father> 8<Mother>Ruth Smith</Mother> 9</Parents> 10<Children number="5"> 11<Male name="Andy" wife="Suzie" kids="2"> 12<Kids> 13<Grandkid>Julie</Grandkid> 14<Grandkid>Daniel</Grandkid> 15</Kids>Andy</Male> 16<Male name="Thomas" wife="Margaret" kids="2"> 17<Kids> 18<Grandkid>Joshua</Grandkid> 19<Grandkid>Lauren</Grandkid> 20</Kids>Thomas</Male> 21<Male name="Henry" wife="Elizbeth" kids="2"> 22<Kids> 23<Grandkid>Nathaniel</Grandkid> 24<Grandkid>Samual</Grandkid> 25</Kids>Henry</Male> 26<Male name="Bruce" wife="Betsy" kids="3"> 27<Kids> 28<Grandkid>Benjamin</Grandkid> 29<Grandkid>Lucy</Grandkid> 30<Grandkid>Jake</Grandkid> 31</Kids>Bruce</Male> 32<Male name="Joseph" wife="Lilla" kids="0">Joseph</Male> 33</Children> 34</Smith> 35</Families> 36The Smith 37The parents are: Lewis and Ruth Smith 38They have 9 grandchildren: Julie, Nathaniel, Joshua, Daniel, Samual, Lauren, Benjamin, Lucy, and Jake 39 Andy Smith's phone number is 483-23-5432. 40He is 45. Andy is married to Suzie. 41Their children are Jules:9, and Daniel:8 42 Bruce Smith's phone number is 213.457.2190. 43He is 38. Bruce is married to Betsy. 44Their children are Ben:5, Lucy:2, and Jake:1 45 Henry Smith's phone number is 417.645.4954. 46He is 40. Henry is married to Beth. 47Their children are Nate:8, and Sam:7 48 Joe Smith's phone number is 781.665.0539. 49He is 34. Joseph is married to Lilla. 50They have no kids 51 52 Tom Smith's phone number is 508.257.2754. 53He is 30. Thomas is married to Maggy. 54Their children are Joshua:7, and Lauren:5 55<!-- Create an simplified output tree for each family --> 56 <Families> 57<Westons> 58<Parents> 59<Father>Melvin Weston</Father> 60<Mother>Liz Harris</Mother> 61</Parents> 62<Children number="2"> 63<Female name="Caroline" husband="" kids="0">Caroline</Female> 64<Female name="Betsy" husband="Bruce" kids="3"> 65<Kids> 66<Grandkid>Benjamin</Grandkid> 67<Grandkid>Lucy</Grandkid> 68<Grandkid>Jake</Grandkid> 69</Kids>Betsy</Female> 70</Children> 71</Westons> 72</Families> 73The Westons 74The parents are: Melvin and Liz Harris 75They have 3 grandchildren: Benjamin, Lucy, and Jake 76 Betsy Weston's phone number is 213.457.2190. 77She is 34. Betsy is married to Bruce. 78Their children are Ben:5, Lucy:2, and Jake:1 79 Caroline Weston's phone number is 715.264.8205. 80She is 37. Caroline is not married. 81 82 </out> 83