我有以下要创建并使用 Perl 脚本填充的 XML 文件模板。XML 属性的所有值都来自不同查询的 SQL 数据库。我的 XML 包含很少的属性集合类型。
我发现我应该使用哪个 perl 模块很困难,因为 CPAN 上有很多可用的替代方案。另外,我想知道我应该如何解决这个问题。
任何帮助是极大的赞赏。
`
<TumorDetails>
<personUpi>String</personUpi>
<ageAtDiagnosis>3.14159E0</ageAtDiagnosis>
<biopsyPathologyReportSummary>String</biopsyPathologyReportSummary>
<primarySiteCollection>
<tissueSite>
<description>String</description>
<name>String</name>
</tissueSite>
</primarySiteCollection>
<distantMetastasisSite>
<description>String</description>
<name>String</name>
</distantMetastasisSite>
<siteGroup>
<description>String</description>
<name>String</name>
</siteGroup>
<tmStaging>
<clinicalDescriptor>String</clinicalDescriptor>
<clinicalMStage>String</clinicalMStage>
<siteGroupEdition5>
<description>String</description>
<name>String</name>
</siteGroupEdition5>
<siteGroupEdition6>
<description>String</description>
<name>String</name>
</siteGroupEdition6>
</tmStaging>
<pediatricStaging>
<doneBy>String</doneBy>
<group>String</group>
</pediatricStaging>
<histologicTypeCollection>
<histologicType>
<description>String</description>
<system>String</system>
<value>String</value>
</histologicType>
</histologicTypeCollection>
<histologicGradeCollection>
<histologicGrade>
<gradeOrDifferentiation>String</gradeOrDifferentiation>
</histologicGrade>
</histologicGradeCollection>
<familyHistoryCollection>
<familyHistory>
<otherCancerDiagnosed>String</otherCancerDiagnosed>
<sameCancerDiagnosed>String</sameCancerDiagnosed>
</familyHistory>
</familyHistoryCollection>
<comorbidityOrComplicationCollection>
<comorbidityOrComplication>
<value>String</value>
</comorbidityOrComplication>
</comorbidityOrComplicationCollection>
<tumorBiomarkerTest>
<her2NeuDerived>String</her2NeuDerived>
<her2NeuFish>String</her2NeuFish>
</tumorBiomarkerTest>
<patientHistoryCollection>
<patientHistory>
<cancerSite>String</cancerSite>
<sequence>2147483647</sequence>
</patientHistory>
</patientHistoryCollection>
<tumorHistory>
<cancerStatus>String</cancerStatus>
<cancerStatusFollowUpDate>1967-08-13</cancerStatusFollowUpDate>
<cancerStatusFollowUpType>String</cancerStatusFollowUpType>
<qualityOfSurvival>String</qualityOfSurvival>
</tumorHistory>
<placeOfDiagnosis>
<initials>String</initials>
</placeOfDiagnosis>
<followUp>
<dateFollowUpChanged>String</dateFollowUpChanged>
<dateOfLastCancerStatus>1967-08-13</dateOfLastCancerStatus>
<nextFollowUpHospital>
<initials>String</initials>
</nextFollowUpHospital>
<lastFollowUpHospital>
<initials>String</initials>
</lastFollowUpHospital>
<tumorFollowUpBiomarkerTest>
<her2NeuDerived>String</her2NeuDerived>
<her2NeuFish>String</her2NeuFish>
</tumorFollowUpBiomarkerTest>
</followUp>
</TumorDetails>
`