| 143 | } |
| 144 | |
| 145 | void PluginValidationResult::WriteXML(XMLWriter& writer) const |
| 146 | { |
| 147 | if(mHasError) |
| 148 | { |
| 149 | writer.StartTag(NodeError); |
| 150 | writer.WriteAttr(AttrErrorMessage, mErrorMessage); |
| 151 | writer.EndTag(NodeError); |
| 152 | } |
| 153 | if(!mDescriptors.empty()) |
| 154 | { |
| 155 | writer.StartTag(NodePlugin); |
| 156 | for(auto& desc : mDescriptors) |
| 157 | desc.WriteXML(writer); |
| 158 | writer.EndTag(NodePlugin); |
| 159 | } |
| 160 | } |