コード例 #1
0
 private void ValidateStringContent(String content)
 {
     // wrap content in an outer tag and try to convert to document (content such as plain text won't convert to a document but could still be valid)
     if (content != null)
     {
         try {
             DOCUMENT_FACTORY.CreateFromString("<mbContent>" + content + "</mbContent>");
         } catch (XmlException e) {
             throw new SAXException(e);
         }
     }
 }