public void OnReadFromXmlNode(IXmlCodeReader serializer, XmlNode node)
        {
            _properties = new SortedList <string, TypedNamedValue>();
            XmlNode items = node.SelectSingleNode(XmlTags.XML_Data);

            if (items != null)
            {
                XmlNodeList nds = items.SelectNodes(XmlTags.XML_Item);
                foreach (XmlNode nd in nds)
                {
                    string  name = XmlUtil.GetNameAttribute(nd);
                    Type    t    = XmlUtil.GetLibTypeAttribute(nd);
                    object  v    = null;
                    XmlNode d    = nd.SelectSingleNode(XmlTags.XML_Data);
                    if (d != null)
                    {
                        v = serializer.ReadValue(d);
                    }
                    _properties.Add(name, new TypedNamedValue(name, new TypedValue(t, v)));
                }
            }
            createFileList();
            items = node.SelectSingleNode(XmlTags.XML_External);
            if (items != null)
            {
                StringCollection ss  = new StringCollection();
                XmlNodeList      nds = items.SelectNodes(XmlTags.XML_Item);
                foreach (XmlNode nd in nds)
                {
                    string name = XmlUtil.GetNameAttribute(nd);
                    ss.Add(name);
                }
                _phpIncludes.SetNames(ss);
            }
        }
        public void OnReadFromXmlNode(IXmlCodeReader serializer, XmlNode node)
        {
            createVariables();
            createFilenames();
            createPageVariables();
            XmlNode fn = node.SelectSingleNode(XML_FILES);

            if (fn != null)
            {
                string   s  = fn.InnerText.Trim();
                string[] ss = s.Split(',');
                _jsIncludes.SetNames(ss);
            }
            fn = node.SelectSingleNode(XML_CSSFILES);
            if (fn != null)
            {
                string   s  = fn.InnerText.Trim();
                string[] ss = s.Split(',');
                _cssIncludes.SetNames(ss);
            }
            XmlNode vn = node.SelectSingleNode(XML_VARS);

            if (vn != null)
            {
                _variabes.OnReadFromXmlNode(serializer, vn);
            }
            vn = node.SelectSingleNode(XML_PAGEVARS);
            if (vn != null)
            {
                _pageVariabes.OnReadFromXmlNode(serializer, vn);
            }
            fn = node.SelectSingleNode(XML_INCLUDES);
            if (fn != null)
            {
                XmlNodeList nds = fn.SelectNodes(XmlTags.XML_Item);
                ExternalJavascriptIncludes = new string[nds.Count];
                for (int i = 0; i < nds.Count; i++)
                {
                    ExternalJavascriptIncludes[i] = nds[i].InnerText;
                }
            }
            vn = node.SelectSingleNode(XML_PAGECODE);
            if (vn == null)
            {
                PageScopeJavascriptCode = string.Empty;
            }
            else
            {
                PageScopeJavascriptCode = vn.InnerText;
            }
        }