Esempio n. 1
0
        protected void Load(XmlElement node)
        {
            _xmlRoot = node;
            _stg     = new BxStorageNode(_xmlRoot.FirstChild as XmlElement, this);

            IBxStorageNode svaNode = _stg.GetChildNode(BxSSL.nodeSVA);

            if (svaNode != null)
            {
                _sva = new BxSVA();
                _sva.Load(svaNode);
            }
            _elementsNode = _stg.GetChildNode(BxSSL.nodeEles);
        }
Esempio n. 2
0
        protected void New()
        {
            XmlDocument doc = new XmlDocument();

            _xmlRoot = doc.CreateElement("root");
            doc.AppendChild(_xmlRoot);
            XmlElement stg = doc.CreateElement(BxSSL.nodeStg);

            _xmlRoot.AppendChild(stg);
            _stg = new BxStorageNode(stg, this);

            _sva = new BxSVA();
            _sva.New(_stg.CreateChildNode(BxSSL.nodeSVA));

            _elementsNode = _stg.CreateChildNode(BxSSL.nodeEles);
        }