public override void Render(Context context, StreamReader reader, StreamWriter writer) { var generator = new ProfileTableGenerator(context.TargetDir, context.Name, false, new ProfileKnowledgeProvider("http://www.hl7.org/implement/standards/fhir/")); string s = reader.ReadToEnd(); var profile = (Profile)FhirParser.ParseResourceFromXml(s); var xmldoc = generator.generate(profile, false); writer.Write(xmldoc.ToString(SaveOptions.DisableFormatting)); }
public override void Render(Context context, StreamReader reader, StreamWriter writer) { var generator = new ProfileTableGenerator(context.TargetDir, context.Name, false, new ProfileKnowledgeProvider("http://www.hl7.org/implement/standards/fhir/")); string s = reader.ReadToEnd(); var profile = (Profile)FhirParser.ParseResourceFromXml(s); var xmldoc = generator.generate(profile, false); writer.Write(xmldoc.ToString(SaveOptions.DisableFormatting)); }
public void PublishLipidProfile() { var source = new FileArtifactSource(true); var profile = (Profile)source.ReadResourceArtifact(new Uri("http://from.file/TestData/lipid.profile.xml")); var publisher = new ProfileTableGenerator(@"c:\temp\publisher", "test page", false); var result = File.ReadAllText(@"TestData\publish-header.xml"); result += publisher.generate(profile, false).ToString(System.Xml.Linq.SaveOptions.DisableFormatting); result += File.ReadAllText(@"TestData\publish-footer.xml"); File.WriteAllText(@"c:\temp\publisher\publisher.html", result); }