Smrf.NodeXL.GraphMLLib.TwitterGraphMLUtil.AppendInReplyToStatusIDGraphMLAttributeValue C# (CSharp) Method

AppendInReplyToStatusIDGraphMLAttributeValue() public static method

public static AppendInReplyToStatusIDGraphMLAttributeValue ( GraphMLXmlDocument graphMLXmlDocument, XmlNode edgeOrVertexXmlNode, String inReplyToStatusID ) : void
graphMLXmlDocument Smrf.XmlLib.GraphMLXmlDocument
edgeOrVertexXmlNode System.Xml.XmlNode
inReplyToStatusID String
return void
    AppendInReplyToStatusIDGraphMLAttributeValue
    (
        GraphMLXmlDocument graphMLXmlDocument,
        XmlNode edgeOrVertexXmlNode,
        String inReplyToStatusID
    )
    {
        Debug.Assert(graphMLXmlDocument != null);
        Debug.Assert(edgeOrVertexXmlNode != null);

        if ( !String.IsNullOrEmpty(inReplyToStatusID) )
        {
            // Precede the ID with a single quote to force Excel to treat the
            // ID as text.  Otherwise, it formats the ID, which is a large
            // number, in scientific notation.

            graphMLXmlDocument.AppendGraphMLAttributeValue(
                edgeOrVertexXmlNode, InReplyToStatusIDID,
                "'" + inReplyToStatusID);
        }
    }