Using the XmlDataManager one can manage documents and collections. More...
Public Member Functions | |
CollectionManager | getCollectionManager () |
Returns a CollectionManager responsible for all collections. | |
DocumentManager | getDocumentManager () |
Returns a DocumentManager. | |
CollectionManager | getW3CCollectionManager () |
Returns a CollectionManager responsible for collections identified by a URI. | |
Iterator | parseXML (const std::string &aDoc) |
Parse an XML document and return an Iterator. | |
Item | parseXMLtoItem (const std::string &aDoc) |
Parse an XML document and return an Item. | |
Item | parseXMLtoItem (ZorbaIOStream &aStream) |
Parse an XML stream and return an Item. | |
XmlDataManager (const XmlDataManager &aMgr) | |
XmlDataManager (zorba::XmlDataManager *aMgr) |
Using the XmlDataManager one can manage documents and collections.
The XmlDataManager is a singleton instance. The Zorba object is reponsible for maintaining its lifetime. The instance can be accessed by calling getXmlDataManager() on the Zorba object. It may not be accessed anymore after Zorba::shutdown() has been called.
XmlDataManager is a thread-safe class.
Definition at line 28 of file XmlDataManager.h.
|
inline |
Definition at line 34 of file XmlDataManager.h.
|
inline |
Definition at line 35 of file XmlDataManager.h.
CollectionManager XmlDataManager::getCollectionManager | ( | ) |
Returns a CollectionManager responsible for all collections.
The collection manager provides a set of functions for managing collections identified by a QName and their contents.
Please note that the resulting manager is only responsible for dynamic collections identified by a QName, i.e. those that are not declared in the prolog of a module or identified by a URI.
DocumentManager XmlDataManager::getDocumentManager | ( | ) |
Returns a DocumentManager.
CollectionManager XmlDataManager::getW3CCollectionManager | ( | ) |
Returns a CollectionManager responsible for collections identified by a URI.
The collection manager provides a set of functions for managing collections identified by a URI and their contents.
Please note that the resulting manager is only responsible for dynamic collections identified by a URI, i.e. those that are not declared in the prolog of a module or identified by a QName.
Iterator XmlDataManager::parseXML | ( | const std::string & | aDoc | ) |
Parse an XML document and return an Iterator.
aDoc | the input string whose content should be parsed |
Item XmlDataManager::parseXMLtoItem | ( | const std::string & | aDoc | ) |
Parse an XML document and return an Item.
aDoc | the input string whose content should be parsed |
Item XmlDataManager::parseXMLtoItem | ( | ZorbaIOStream & | aStream | ) |
Parse an XML stream and return an Item.
aStream | the input string whose content should be parsed |