Mercurial > repos > IBBoard.WarFoundry.API.Tests
comparison API/Factories/Xml/SingleXmlObjectLoader.cs @ 69:b2517bb113d0
Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
* Validate loading of different key/keyref options in army file
This may be all of it, but needs checking
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 04 Jul 2010 20:04:16 +0000 |
parents | 97ea355f9564 |
children | 3725fd449c77 |
comparison
equal
deleted
inserted
replaced
68:a82f164e26e3 | 69:b2517bb113d0 |
---|---|
30 stream.Close(); | 30 stream.Close(); |
31 } | 31 } |
32 } | 32 } |
33 } | 33 } |
34 | 34 |
35 public static XmlElement CreateDocumentElementFromFile(string filePath) | |
36 { | |
37 return CreateDocumentElementFromFile(new FileInfo(filePath)); | |
38 } | |
39 | |
35 public static XmlElement CreateDocumentElementFromFile(FileInfo file) | 40 public static XmlElement CreateDocumentElementFromFile(FileInfo file) |
36 { | 41 { |
37 return CreateDocumentElementFromStream(file.OpenRead()); | 42 return CreateDocumentElementFromStream(file.OpenRead()); |
38 } | 43 } |
39 | 44 |