Ignore:
Timestamp:
May 23, 2013, 6:08:50 AM (6 years ago)
Author:
cameron
Message:

Penultimate check-in for icXML 0.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icXML/icXML-devel/src/icxmlc/parsers/XMLNamespaceParser.hpp

    r3157 r3178  
    254254                    case StartTagWithAttributes:
    255255                        hasAttributes = 1;
     256                        // intentionally fall through after the hasAttributes flag is set.
    256257                    case StartTagWithoutAttributes:
    257258                    {
     
    445446        }
    446447
     448        // mark any attribute as either a namespace or surpressed attribute; this will inform the DocumentAccumulator as to whether or not
     449        // to include the xmlns attribute in the document context and object streams.
     450        const static MarkupType attributeType[2] = { Surpressed, NamespaceAttribute };
    447451        WritableContentPtrType attributeMarker = const_cast<WritableContentPtrType>(fCursorPtr - 1);
    448         *attributeMarker = (*attributeMarker & DefaultAttribute) | NamespaceAttribute;
     452        *attributeMarker = (*attributeMarker & DefaultAttribute) | attributeType[namespaceContextChange];
    449453
    450454        if (unlikely(expanded))
Note: See TracChangeset for help on using the changeset viewer.