Beispiel #1
0
 static public void TestName(this XmlElement element, string nodeName)
 {
     if (element.LocalName != nodeName)
     {
         throw XliffException.InvalideNodeName(nodeName);
     }
 }
Beispiel #2
0
        static public string TestAttribut(this XmlElement node, string atribut)
        {
            if (!node.HasAttribute(atribut))
            {
                throw XliffException.NoAttributFound(node.LocalName, atribut);
            }

            return(node.GetAttribute(atribut));
        }