DataDictionary.Generated.Folder.parse C# (CSharp) Method

parse() public method

This method is used by XMLBooster-generated code internally. Please refrain from using it, as it might produce unexpected results, and might change or even disappear in the future.
public parse ( XmlBooster.XmlBContext ctxt, string endingTag ) : void
ctxt XmlBooster.XmlBContext
endingTag string
return void
        public override void parse(XmlBContext ctxt,  string  endingTag)
        {
            #pragma warning disable 0168, 0219
            int indicator = 0;
            char quoteChar;
             string  tempStr = null;
            bool fl1658;
            bool fl1659;
            bool fl1660;
            bool fl1661;
            bool fl1662;
            #pragma warning restore 0168, 0219

            ctxt.skipWhiteSpace();
            {
            // Accept Attributes
            fl1658 = false ;
            fl1659 = false ;
            fl1660 = false ;
            fl1661 = false ;
            fl1662 = true ;
            while (fl1662) { // BeginLoop
            switch (ctxt.current()) {
            case 'U':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("pdates=")){
            indicator = 1660;
            } else {
            indicator = 1663;
            } // If
            break;
            } // Case
            case 'N':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("ame=")){
            indicator = 1658;
            } else {
            indicator = 1663;
            } // If
            break;
            } // Case
            case 'I':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("sRemoved=")){
            indicator = 1661;
            } else {
            indicator = 1663;
            } // If
            break;
            } // Case
            case 'G':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("uid=")){
            indicator = 1659;
            } else {
            indicator = 1663;
            } // If
            break;
            } // Case
            default:
            indicator = 1663;
            break;
            } // Switch
            switch (indicator) {
            case 1658: {
            // Handling attribute Name
            // Also handles alien attributes with prefix Name
            if (fl1658){
            ctxt.fail ("Duplicate attribute: Name");
            } // If
            fl1658 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setName((acceptor.lAcceptPcData(ctxt,-1, quoteChar, XmlBContext.WS_PRESERVE)));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 1659: {
            // Handling attribute Guid
            // Also handles alien attributes with prefix Guid
            if (fl1659){
            ctxt.fail ("Duplicate attribute: Guid");
            } // If
            fl1659 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setGuid((acceptor.lAcceptPcData(ctxt,-1, quoteChar, XmlBContext.WS_PRESERVE)));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 1660: {
            // Handling attribute Updates
            // Also handles alien attributes with prefix Updates
            if (fl1660){
            ctxt.fail ("Duplicate attribute: Updates");
            } // If
            fl1660 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setUpdates((acceptor.lAcceptPcData(ctxt,-1, quoteChar, XmlBContext.WS_PRESERVE)));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 1661: {
            // Handling attribute IsRemoved
            // Also handles alien attributes with prefix IsRemoved
            if (fl1661){
            ctxt.fail ("Duplicate attribute: IsRemoved");
            } // If
            fl1661 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setIsRemoved(acceptor.lAcceptBoolean(ctxt));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            // Final default label
            case 1663: {
            // Taking ignorable attributes into account
            if (ctxt.isAlNum()){
            ctxt.skipTill ('=');
            ctxt.advance();
            ctxt.skipWhiteSpace();
            quoteChar = ctxt.acceptQuote();
            ctxt.skipTill (quoteChar);
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            } else {
            if (!fl1661){
            this.setIsRemoved( false);
            } // If
            fl1662 = false ;
            } // If
            break;
            } // End of dispatch label
            } // Dispatch
            } // While
            }
            ctxt.skipWhiteSpace();
            if (ctxt.current() == '/'){
            ctxt.advance();
            ctxt.accept('>');
            } else {
            ctxt.accept('>');
            parseBody(ctxt);
            ctxt.acceptString(endingTag);
            // If formula empty
            } // If
        }