Esempio n. 1
0
 private static void interpret(XmlSchemaSet schemas, XElement trafo, FxtLog log, List <IFxtTransformation> trafos)
 {
     foreach (XElement child in trafo.Elements())
     {
         if ((child.Name != (FxtInterpreter.FxtNs + "Deanonymize") ? true : child.Elements().Count <XElement>() != 0))
         {
             throw FxtInterpreter.ex;
         }
         bool?nullable = (bool?)child.Attribute("strict");
         foreach (IFxtTransformation x in schemas.Deanonymize(new FxtScope(), (nullable.HasValue ? nullable.GetValueOrDefault() : false), log))
         {
             trafos.Add(x);
         }
     }
 }
Esempio n. 2
0
 static void interpret(XmlSchemaSet schemas, XElement trafo, FxtLog log, List <IFxtTransformation> trafos)
 {
     foreach (var child in trafo.Elements())
     {
         if (child.Name == FxtInterpreter.FxtNs + "Deanonymize" &&
             child.Elements().Count() == 0)
         {
             bool strict = (bool?)child.Attribute("strict") ?? false;
             foreach (var x in schemas.Deanonymize(new FxtScope(), strict, log))
             {
                 trafos.Add(x);
             }
             continue;
         }
         throw FxtInterpreter.ex;
     }
 }