version 1.36, 2009/02/05 05:44:05
|
version 1.37, 2009/11/30 16:49:46
|
|
|
| |
// Warning: this constructor modifies the text. | // Warning: this constructor modifies the text. |
| |
XmlParser(char* text, XmlNamespace* ns = 0); |
/** If hideEmptyTags if true, next() hides empty tags from the caller. |
|
Instead, next() returns a fake start tag. The subsequent next() call |
|
returns a fake end tag. This relieves the caller from having to do |
|
special processing of empty tags, which can be tricky and error-prone. |
|
*/ |
|
XmlParser(char* text, XmlNamespace* ns = 0, Boolean hideEmptyTags = false); |
| |
/** Comments are returned with entry if includeComment is true else | /** Comments are returned with entry if includeComment is true else |
XmlParser ignores comments. Default is false. | XmlParser ignores comments. Default is false. |
|
|
| |
XmlNamespace* getNamespace(int nsType); | XmlNamespace* getNamespace(int nsType); |
| |
|
void setHideEmptyTags(bool flag) { _hideEmptyTags = flag; } |
|
|
|
bool getHideEmptyTags(bool flag) const { return _hideEmptyTags; } |
|
|
private: | private: |
| |
|
Boolean _next(XmlEntry& entry, Boolean includeComment = false); |
|
|
Boolean _getElementName(char*& p, const char*& localName); | Boolean _getElementName(char*& p, const char*& localName); |
| |
Boolean _getOpenElementName( | Boolean _getOpenElementName( |
|
|
XmlNamespace* _supportedNamespaces; | XmlNamespace* _supportedNamespaces; |
Stack<XmlNamespace> _nameSpaces; | Stack<XmlNamespace> _nameSpaces; |
int _currentUnsupportedNSType; | int _currentUnsupportedNSType; |
|
Boolean _hideEmptyTags; |
}; | }; |
| |
PEGASUS_COMMON_LINKAGE void XmlAppendCString( | PEGASUS_COMMON_LINKAGE void XmlAppendCString( |