我有一個騾流是試圖合併2 xml到一個單一的xml作爲有效載荷傳遞給一個休息API調用。 XML1 -合併2 xmls到一個單一的xslt在一個騾流
<?xml version="1.0" encoding="utf-8"?>
<ProviderInformation>
<Provider_Name>
<FirstName/>
<LastName/>
<Title/>
</Provider_Name>
<DBA>
<Using_DBA/>
<DBA_Name/>
<Years_DBA/>
<Months_DBA/>
<Using_Former_DBA/>
<Former_DBA_Name/>
<Years_Former_DBA/>
</DBA>
<TIN>
<SSN/>
<Using_EIN/>
<EIN/>
<NPI/>
<Ownership_Type/>
<Gender/>
<DOB/>
<Provider_Email_Address/>
<Provider_Email_Address_Verify/>
<Practice_Website_Address/>
</TIN>
</ProviderInformation>
XML2 -
<?xml version="1.0" encoding="utf-8"?>
<Medicare>
<Enrolled_In_Medicaid/>
<Medicare_ID/>
<Medicare_NPI/>
<Medicare_Enrollment_Date></Medicare_Enrollment_Date>
\t <Using_Other_Medicaid_CHIP/>
<Other_Medicaid_ID state="SC">
<Other_Medicaid_ID/>
<Other_Medicaid_NPI/>
<Other_medicaid_Effective_Date></Other_medicaid_Effective_Date>
<Other_Medicaid_Enrollment_Date></Other_Medicaid_Enrollment_Date>
<Other_Medicaid_State/>
</Other_Medicaid_ID>
<Other_Medicaid_ID state="GA">
<Other_Medicaid_ID/>
<Other_Medicaid_NPI/>
<Other_medicaid_Effective_Date></Other_medicaid_Effective_Date>
<Other_Medicaid_Enrollment_Date></Other_Medicaid_Enrollment_Date>
<Other_Medicaid_State/>
</Other_Medicaid_ID>
</Medicare>
輸出 -
<?xml version="1.0" encoding="utf-8"?>
<ROOT-Application>
<ProviderInformation>
<Provider_Name>
<FirstName/>
<LastName/>
<Title/>
</Provider_Name>
<DBA>
<Using_DBA/>
<DBA_Name/>
<Years_DBA/>
<Months_DBA/>
<Using_Former_DBA/>
<Former_DBA_Name/>
<Years_Former_DBA/>
</DBA>
<TIN>
<SSN/>
<Using_EIN/>
<EIN/>
<NPI/>
<Ownership_Type/>
<Gender/>
<DOB/>
<Provider_Email_Address/>
<Provider_Email_Address_Verify/>
<Practice_Website_Address/>
</TIN>
</ProviderInformation>
<Medicare>
<Enrolled_In_Medicaid/>
<Medicare_ID/>
<Medicare_NPI/>
<Medicare_Enrollment_Date></Medicare_Enrollment_Date>
\t <Using_Other_Medicaid_CHIP/>
<Other_Medicaid_ID state="SC">
<Other_Medicaid_ID/>
<Other_Medicaid_NPI/>
<Other_medicaid_Effective_Date></Other_medicaid_Effective_Date>
<Other_Medicaid_Enrollment_Date></Other_Medicaid_Enrollment_Date>
<Other_Medicaid_State/>
</Other_Medicaid_ID>
<Other_Medicaid_ID state="GA">
<Other_Medicaid_ID/>
<Other_Medicaid_NPI/>
<Other_medicaid_Effective_Date></Other_medicaid_Effective_Date>
<Other_Medicaid_Enrollment_Date></Other_Medicaid_Enrollment_Date>
<Other_Medicaid_State/>
</Other_Medicaid_ID>
</Medicare>
</ROOT-Application>
「*有人可以請幫助我的XSLT文件,因爲我不能夠創建它。*」我們來這裏是爲了幫助你的編碼 - 不爲你做。 –
你的騾子流哪裏?讓我們看看這2個xml有效載荷如何進入您的流程。請分享您的Mule配置 –