new element loop

This commit is contained in:
Lee Thomason (grinliz)
2012-02-23 22:27:28 -08:00
parent d627776dd3
commit 46a14cfec7
3 changed files with 481 additions and 409 deletions

View File

@@ -463,7 +463,6 @@ public:
virtual bool Accept( XMLVisitor* visitor ) const = 0;
virtual char* ParseDeep( char* );
virtual bool IsClosingElement() const { return false; }
protected:
XMLNode( XMLDocument* );
@@ -681,7 +680,12 @@ public:
const char* GetText() const;
// internal:
virtual bool IsClosingElement() const { return closing; }
enum {
OPEN, // <foo>
CLOSED, // <foo/>
CLOSING // </foo>
};
int ClosingType() const { return closingType; }
char* ParseDeep( char* p );
private:
@@ -693,9 +697,9 @@ private:
XMLAttribute* FindAttribute( const char* name );
XMLAttribute* FindOrCreateAttribute( const char* name );
void LinkAttribute( XMLAttribute* attrib );
char* ParseAttributes( char* p, bool *closedElement );
char* ParseAttributes( char* p );
bool closing;
int closingType;
XMLAttribute* rootAttribute;
};