00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef _FU_XML_PARSER_H_
00013 #define _FU_XML_PARSER_H_
00014
00015 #ifdef HAS_LIBXML
00016
00017 namespace FUXmlParser
00018 {
00019
00020 FCOLLADA_EXPORT xmlNode* FindChildByType(xmlNode* parent, const char* type);
00021 FCOLLADA_EXPORT xmlNode* FindChildByName(xmlNode* parent, const char* name);
00022 FCOLLADA_EXPORT void FindChildrenByType(xmlNode* parent, const char* type, xmlNodeList& nodes);
00023 FCOLLADA_EXPORT xmlNode* FindChildByProperty(xmlNode* parent, const char* prop, const char* val );
00024 FCOLLADA_EXPORT xmlNode* FindNodeInListByProperty(xmlNodeList list, const char* property, const char* prop);
00025
00026
00027 FCOLLADA_EXPORT bool HasNodeProperty(xmlNode* node, const char* property);
00028 FCOLLADA_EXPORT string ReadNodeProperty(xmlNode* node, const char* property);
00029 FCOLLADA_EXPORT FUCrc32::crc32 ReadNodePropertyCRC(xmlNode* node, const char* property);
00030 FCOLLADA_EXPORT const char* ReadNodeContentDirect(xmlNode* node);
00031 FCOLLADA_EXPORT string ReadNodeContentFull(xmlNode* node);
00032
00033
00034 FCOLLADA_EXPORT void XmlToString(string& s);
00035 };
00036
00037 inline bool IsEquivalent(const xmlChar* sz1, const char* sz2) { return IsEquivalent((const char*) sz1, sz2); }
00038
00039 #endif // HAS_LIBXML
00040
00041 #endif //_FU_XML_PARSER_H_