Ejemplo n.º 1
0
 public virtual XmlNode CreateElement(string targetFieldName, bool encoded, string value)
 {
     if (encoded)
     {
         value = XhtmlToText(value);
     }
     if (targetFieldName == null)
     {
         return(IndexData.CreateTextNode(value + ". "));
     }
     else
     {
         XmlElement field = IndexData.CreateElement(targetFieldName);
         field.InnerText = value;
         return(field);
     }
 }