XML utility methods.
This class contains utility methods for dealing with XML. All methods are static.

This is an improved replacement for XmlUtil, which should not be used in new projects.

コード例 #1
0
        SetXmlNodeAttributes
        (
            XmlNode oXmlNode,
            params String[] asNameValuePairs
        )
        {
            Debug.Assert(oXmlNode != null);
            Debug.Assert(asNameValuePairs != null);
            AssertValid();

            XmlUtil2.SetAttributes(oXmlNode, asNameValuePairs);
        }
コード例 #2
0
        AppendXmlNode
        (
            XmlNode oParentXmlNode,
            String sChildName
        )
        {
            Debug.Assert(oParentXmlNode != null);
            Debug.Assert(!String.IsNullOrEmpty(sChildName));
            // AssertValid();

            return(XmlUtil2.AppendNewNode(oParentXmlNode, sChildName,
                                          GraphMLNamespaceUri));
        }