Logo Search packages:      
Sourcecode: ndoc version File versions  Download package

void NDoc::Core::BaseDocumenterConfig::Read ( XmlReader  reader  )  [inline, inherited]

Loads config details from the specified XmlReader.

reader An XmlReader positioned on a <documenter> element.
Each property found in the XML is loaded into current config using ReadProperty.

Implements NDoc::Core::IDocumenterConfig.

Definition at line 205 of file BaseDocumenterConfig.cs.

                  // we don't want to set the project IsDirty flag during the read...

                  string FailureMessages="";

                  while(!reader.EOF && !(reader.NodeType == XmlNodeType.EndElement && reader.Name == "documenter"))
                        if (reader.NodeType == XmlNodeType.Element && reader.Name == "property")
                              FailureMessages += ReadProperty(reader["name"], reader["value"]);
                        reader.Read(); // Advance.

                  // Restore the project IsDirty checking.
                  if (FailureMessages.Length > 0)
                        throw new DocumenterPropertyFormatException(FailureMessages);

Generated by  Doxygen 1.6.0   Back to index