Пример #1
0
        private ICollection GetStripFixes(XmlNode n)
        {
            ArrayList list = new ArrayList();

            if (n.HasChildNodes)
            {
                XmlElement e = (XmlElement)n;

                ArrayList items = new ArrayList();
                foreach (XmlNode child in e.ParentNode.ChildNodes)
                {
                    if (child.Equals(n))
                    {
                        foreach (XmlNode child2 in e.ChildNodes)
                        {
                            items.Add(child2);
                        }

                        continue;
                    }
                    items.Add(child);
                }

                QuickFixValidator sv = new QuickFixValidator(documentType);
                if (sv.IsValidSequence(e.ParentNode as XmlElement, items))
                {
                    list.Add(new QuickFixStrip((XmlElement)n));
                }
            }
            return(list);
        }
Пример #2
0
        private ICollection GetStripFixes(XmlNode n)
        {
            ArrayList list=new ArrayList();

            if ( n.HasChildNodes )
            {
                XmlElement e=(XmlElement) n;
                ArrayList items=new ArrayList();
                foreach ( XmlNode child in e.ParentNode.ChildNodes )
                {
                    if ( child.Equals(n) )
                    {
                        foreach ( XmlNode child2 in e.ChildNodes )
                            items.Add(child2);

                        continue;
                    }
                    items.Add(child);
                }

                QuickFixValidator sv=new QuickFixValidator(documentType);
                if ( sv.IsValidSequence(e.ParentNode as XmlElement, items) )
                    list.Add(new QuickFixStrip((XmlElement) n));
            }
            return list;
        }