Exemplo n.º 1
0
        public override String Process()
        {
            if (SourceObj is XmlNode)
            {
                return((SourceObj as XmlNode).OuterXml);
            }
            else if (SourceObj is JToken)
            {
                return((SourceObj as JToken).ToString());
            }
            if (SourceObj is XmlNodeList)
            {
            }

            return(SourceObj.ToString());
        }
Exemplo n.º 2
0
        public override string Generate()
        {
            if (SourceObj is XmlNode)
            {
                return(StringHelper.ToString(SourceObj as XmlNode));
            }
            else if (SourceObj is JToken)
            {
                return((SourceObj as JToken).ToString());
            }
            if (SourceObj is XmlNodeList)
            {
                return(StringHelper.ToString(SourceObj as XmlNodeList));
            }

            return(SourceObj.ToString());
        }