version 1.30, 2007/07/30 06:50:57
|
version 1.30.8.2, 2008/03/11 22:44:11
|
|
|
XmlSemanticError(Uint32 lineNumber, MessageLoaderParms& msgParms); | XmlSemanticError(Uint32 lineNumber, MessageLoaderParms& msgParms); |
}; | }; |
| |
|
struct XmlNamespace |
|
{ |
|
const char* localName; |
|
const char* extendedName; |
|
int type; |
|
Uint32 scopeLevel; |
|
}; |
|
|
struct XmlAttribute | struct XmlAttribute |
{ | { |
const char* name; | const char* name; |
|
|
CONTENT | CONTENT |
}; | }; |
| |
enum { MAX_ATTRIBUTES = 10 }; |
|
|
|
CIMType type; | CIMType type; |
|
int nsType; |
const char* text; | const char* text; |
XmlAttribute attributes[MAX_ATTRIBUTES]; |
Array<XmlAttribute> attributes; |
Uint32 attributeCount; |
|
| |
void print() const; | void print() const; |
| |
|
|
| |
// Warning: this constructor modifies the text. | // Warning: this constructor modifies the text. |
| |
XmlParser(char* text); |
XmlParser(char* text, XmlNamespace* ns = 0); |
| |
/** 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. |
|
|
| |
Uint32 getLine() const { return _line; } | Uint32 getLine() const { return _line; } |
| |
|
XmlNamespace* getNamespace(int nsType); |
|
int getSupportedNamespaceType(const char* extendedName); |
|
|
private: | private: |
| |
Boolean _getElementName(char*& p); | Boolean _getElementName(char*& p); |
|
|
| |
void _getElement(char*& p, XmlEntry& entry); | void _getElement(char*& p, XmlEntry& entry); |
| |
|
int _getNamespaceType(const char* tag); |
|
|
Uint32 _line; | Uint32 _line; |
char* _current; | char* _current; |
char _restoreChar; | char _restoreChar; |
Stack<char*> _stack; | Stack<char*> _stack; |
Boolean _foundRoot; | Boolean _foundRoot; |
Stack<XmlEntry> _putBackStack; | Stack<XmlEntry> _putBackStack; |
|
|
|
Uint32 _scopeLevel; |
|
XmlNamespace* _supportedNamespaces; |
|
Stack<XmlNamespace> _nameSpaces; |
}; | }; |
| |
PEGASUS_COMMON_LINKAGE void XmlAppendCString( | PEGASUS_COMMON_LINKAGE void XmlAppendCString( |