コード例 #1
0
        public void EnterElement()
        {
            string value       = null;
            string id          = null;
            string contentType = null;

            readAttributes(out id, out value, out contentType);
            var contents = new ElementContents();

            if (id != null)
            {
                contents.Elements.Push(new Tuple <string, string>(LOCALID_NAME, id));
            }

            if (value != null)
            {
                contents.Elements.Push(new Tuple <string, string>(PRIMITIVE_VALUE_NAME, value));
            }

            if (contentType != null)
            {
                contents.Elements.Push(new Tuple <string, string>(BINARY_CONTENTTYPE_NAME, contentType));
            }

            if (!xr.IsEmptyElement)
            {
                insideEmptyElement = false;
                xr.ReadStartElement();
            }
            else
            {
                insideEmptyElement = true;
            }

            elementStack.Push(contents);
        }
コード例 #2
0
        public void EnterElement()
        {
            string value = null;
            string id = null;
            string contentType = null;

            readAttributes(out id, out value, out contentType);
            var contents = new ElementContents();

            if( id != null )
                contents.Elements.Push( new Tuple<string,string>(LOCALID_NAME,id) );

            if(value != null )
                contents.Elements.Push( new Tuple<string,string>(PRIMITIVE_VALUE_NAME,value) );

            if (contentType != null)
                contents.Elements.Push(new Tuple<string, string>(BINARY_CONTENTTYPE_NAME, contentType));

            if (!xr.IsEmptyElement)
            {
                insideEmptyElement = false;
                xr.ReadStartElement();
            }
            else
                insideEmptyElement = true;

            elementStack.Push(contents);
        }