Hi Guys,
I need to debatch a input through a custom XSLT. Please help
Batch Input:
<ns0:Input xmlns:ns0="http://Debatching.Input">
<Head>Parent</Head>
<Child>
<Name>Name_1</Name>
<Gender>Female</Gender>
</Child>
<Child>
<Name>Name_2</Name>
<Gender>Male</Gender>
</Child>
</ns0:Input>
Expected Outputs: Count=2
Output 1:
<ns0:Output xmlns:ns0="http://Debatching.Output">
<Guardian>Parent</Guardian>
<FullName>Name_1</FullName>
<Sex>Female</Sex>
</ns0:Output>
Output 2:
<ns0:Output xmlns:ns0="http://Debatching.Output">
<Guardian>Parent</Guardian>
<FullName>Name_2</FullName>
<Sex>Male</Sex>
</ns0:Output>
Input Schema
<?xml version="1.0" encoding="utf-16"?><xs:schema xmlns="http://Debatching.Input" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" targetNamespace="http://Debatching.Input" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Input">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="1" maxOccurs="1" name="Head" type="xs:string" />
<xs:element minOccurs="0" maxOccurs="unbounded" name="Child">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="1" name="Name" type="xs:string" />
<xs:element minOccurs="0" maxOccurs="1" name="Gender" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Output Schema
<?xml version="1.0" encoding="utf-16"?><xs:schema xmlns="http://Debatching.Output" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" targetNamespace="http://Debatching.Output" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Output">
<xs:complexType>
<xs:sequence>
<xs:element name="Guardian" type="xs:string" />
<xs:element name="FullName" type="xs:string" />
<xs:element name="Sex" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>