// Initalises parsing of an XML file, either a tmx (Map) file or tsx (Tileset) file bool ParseXmlFile(string xmlFilename) { var parser = new CCSAXParser(); parser.SetDelegator(this); return(parser.ParseContentFile(xmlFilename)); }
bool ParseXmlString(string data) { var parser = new CCSAXParser(); parser.SetDelegator(this); return(parser.ParseContent(data)); }
bool ParseXmlString(string data) { var parser = new CCSAXParser(); parser.SetDelegator(this); return parser.ParseContent(data); }
public Dictionary<string, Object> DictionaryWithContentsOfFile(string filename) { CCSAXParser parser = new CCSAXParser(); parser.SetDelegator(this); parser.ParseContentFile(filename); return rootDict; }
public Dictionary <string, Object> DictionaryWithContentsOfFile(string filename) { CCSAXParser parser = new CCSAXParser(); parser.SetDelegator(this); parser.ParseContentFile(filename); return(rootDict); }
public CCTileMapInfo(StreamReader stream) : this() { string data = stream.ReadToEnd(); var parser = new CCSAXParser(); parser.SetDelegator(this); parser.ParseContent(data); }
public List<Object> ArrayWithContentsOfFile(string filename) { CCSAXParser parser = new CCSAXParser(); parser.SetDelegator(this); StartElement(parser, "dict", null); StartElement(parser, "key", null); TextHandler(parser, System.Text.UTF8Encoding.UTF8.GetBytes("root"), 4); EndElement(parser, "key"); parser.ParseContentFile(filename); EndElement(parser, "dict"); return rootDict["root"] as List<Object>; }
public List <Object> ArrayWithContentsOfFile(string filename) { CCSAXParser parser = new CCSAXParser(); parser.SetDelegator(this); StartElement(parser, "dict", null); StartElement(parser, "key", null); TextHandler(parser, System.Text.UTF8Encoding.UTF8.GetBytes("root"), 4); EndElement(parser, "key"); parser.ParseContentFile(filename); EndElement(parser, "dict"); return(rootDict["root"] as List <Object>); }
// Initalises parsing of an XML file, either a tmx (Map) file or tsx (Tileset) file bool ParseXmlFile(string xmlFilename) { var parser = new CCSAXParser(); parser.SetDelegator(this); return parser.ParseContentFile(xmlFilename); }