DataDictionary.Generated.DBPacket.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 fl1570;
            bool fl1571;
            bool fl1572;
            bool fl1573;
            bool fl1574;
            #pragma warning restore 0168, 0219

            ctxt.skipWhiteSpace();
            {
            // Accept Attributes
            fl1570 = false ;
            fl1571 = false ;
            fl1572 = false ;
            fl1573 = false ;
            fl1574 = true ;
            while (fl1574) { // BeginLoop
            switch (ctxt.current()) {
            case 'U':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("pdates=")){
            indicator = 1572;
            } else {
            indicator = 1575;
            } // If
            break;
            } // Case
            case 'N':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("ame=")){
            indicator = 1570;
            } else {
            indicator = 1575;
            } // If
            break;
            } // Case
            case 'I':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("sRemoved=")){
            indicator = 1573;
            } else {
            indicator = 1575;
            } // If
            break;
            } // Case
            case 'G':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("uid=")){
            indicator = 1571;
            } else {
            indicator = 1575;
            } // If
            break;
            } // Case
            default:
            indicator = 1575;
            break;
            } // Switch
            switch (indicator) {
            case 1570: {
            // Handling attribute Name
            // Also handles alien attributes with prefix Name
            if (fl1570){
            ctxt.fail ("Duplicate attribute: Name");
            } // If
            fl1570 = 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 1571: {
            // Handling attribute Guid
            // Also handles alien attributes with prefix Guid
            if (fl1571){
            ctxt.fail ("Duplicate attribute: Guid");
            } // If
            fl1571 = 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 1572: {
            // Handling attribute Updates
            // Also handles alien attributes with prefix Updates
            if (fl1572){
            ctxt.fail ("Duplicate attribute: Updates");
            } // If
            fl1572 = 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 1573: {
            // Handling attribute IsRemoved
            // Also handles alien attributes with prefix IsRemoved
            if (fl1573){
            ctxt.fail ("Duplicate attribute: IsRemoved");
            } // If
            fl1573 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setIsRemoved(acceptor.lAcceptBoolean(ctxt));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            // Final default label
            case 1575: {
            // 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 (!fl1573){
            this.setIsRemoved( false);
            } // If
            fl1574 = 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
        }