예제 #1
0
        public TiXmlCursor Clone()
        {
            TiXmlCursor cursor = new TiXmlCursor();

            cursor.row = this.row;
            cursor.col = this.col;
            return(cursor);
        }
예제 #2
0
        // [internal use]
        public void SetError(ErrorType err, string pError, int index, TiXmlParsingData data, int encoding)
        {
            // The first error in a chain is more accurate - don't set again!
            if (error)
            {
                return;
            }

            //assert( err > 0 && err < TIXML_ERROR_STRING_COUNT );
            error     = true;
            errorId   = err;
            errorDesc = errorString[(int)errorId];

            errorLocation.Clear();
            if (pError != null && data != null)
            {
                data.Stamp(pError, index, encoding);
                errorLocation = data.Cursor();
            }
        }