25 #ifndef _MUSICBRAINZ5_ENTITY_H
26 #define _MUSICBRAINZ5_ENTITY_H
33 #include "musicbrainz5/xmlParser.h"
35 namespace MusicBrainz5
39 class CRelationListList;
51 void Parse(
const XMLNode& Node);
54 std::map<std::string,std::string>
ExtElements()
const;
56 virtual std::ostream&
Serialise(std::ostream& os)
const;
73 os << (
const char *)Node.getText();
78 std::cerr <<
"Error parsing value '";
80 std::cerr << Node.getText();
81 std::cerr <<
"'" << std::endl;
94 std::cerr <<
"Error parsing value '" << Text <<
"'" << std::endl;
101 RetVal=Node.getText();
104 virtual void ParseAttribute(
const std::string& Name,
const std::string& Value)=0;