- #light
- open System
- open System.IO
- open System.Xml
- let out(x) = printfn "%A"x
- let xmldoc = new XmlDocument()
- xmldoc.Load("c://test.xml")
- let xnl = xmldoc.SelectSingleNode("Root").ChildNodes
- for n in 0 .. xnl.Count-1 do
- let xe = xnl.Item(n)
- out(xe.InnerText)
- System.Console.ReadKey(true) > ignore