public bool Invoke(string[] cols) { var data = DataListUtilBase.AdjustForEncodingIssues(cols[0]); var isXml = DataListUtilBase.IsXml(data, out bool isFragment); return(!(isXml || isFragment)); }
private string BuildPostBody(byte[] body) { var returnedQueueMessage = Encoding.UTF8.GetString(body); var inputs = _valueKeys.Select(v => (v.Name, v.Value)).ToList(); var mappedData = _messageToInputsMapper.Map(returnedQueueMessage, inputs, returnedQueueMessage.IsJSON(), DataListUtilBase.IsXml(returnedQueueMessage), _mapEntireMessage); return(mappedData); }
public static bool IsXml(string data, out bool isFragment) => DataListUtilBase.IsXml(data, out isFragment);
//used in the replace node method public static bool IsXml(string data) => DataListUtilBase.IsXml(data);