bool LoadFromXML(Callback1<XmlIO> xmlize, const String& xml) { try { XmlNode node = ParseXML(xml); if(node.GetCount() == 0) return false; for(int i = 0; i < node.GetCount(); i++) if(node.Node(i).IsTag()) { Value dummy; xmlize(XmlIO(node.At(i), true, dummy)); break; } return true; } catch(XmlError x) { throw x; } // XmlError is removed return false; }
Report message to a moderator