protected override void ParseChild(XElement parent, XElement child) { if (child.Is("field")) { ParseAndAddChild(child, new ApiField(DocumentPath)); } else if (child.Is("implements")) { ParseAndAddChild(child, new ApiImplements(DocumentPath)); } else if (child.Is("method")) { ParseAndAddChild(child, new ApiMethod(DocumentPath)); } else if (child.Is("typeParameters")) { var tp = new ApiTypeParameters(DocumentPath); tp.Parse(child); AddChildRange(tp.ChildElements); } else { base.ParseChild(parent, child); } }
protected override void ParseChild(XElement parent, XElement child) { if (child.Is("parameter")) { ParseAndAddChild(child, new ApiMethodParameter(DocumentPath)); } else if (child.Is("exception")) { ParseAndAddChild(child, new ApiException(DocumentPath)); } else if (child.Is("typeParameters")) { var tp = new ApiTypeParameters(DocumentPath); tp.Parse(child); AddChildRange(tp.ChildElements); } else { base.ParseChild(parent, child); } }