I was trying to create multiple flat XML based on line items from the input XML. Is this possible is just using Dataweave or Datamapper in mule?
Thanks
Please see example above
<?xml version="1.0" encoding="utf-8"?>
<XmlInterchange>
<InterchangeInfo>
<Payload>
<WhsDockets>
<WhsDocket>
<Identifier>1</Identifier>
<DocketDetail>
</DocketDetail>
<DocketLines>
<Product>7CAGL3G00</Product>
<Description>AGL_7C_0</Description>
<QuantityFromClientOrder>7.00</QuantityFromClientOrder>
<QuantityActuallyOrdered>7.00</QuantityActuallyOrdered>
<ProductUQ>SKD</ProductUQ>
<Confirmation>
<Lines>
<Line>
<PartAttribute1>4440_100</PartAttribute1>
<PartAttribute2>96489</PartAttribute2>
<PartAttribute3>700029611 - 700029710 #4</PartAttribute3>
<Quantity>100.000</Quantity>
<QuantityUQ>UNT</QuantityUQ>
</Line>
<Line>
<PartAttribute1>4440_100</PartAttribute1>
<PartAttribute2>96489</PartAttribute2>
<PartAttribute3>700029511 - 700029610 #3</PartAttribute3>
<Quantity>100.000</Quantity>
<QuantityUQ>UNT</QuantityUQ>
</Line>
</Lines>
</Confirmation>
</DocketLines>
<WhsDocket>
<WhsDockets>
<Payload>
</InterchangeInfo>
</XmlInterchange>
target
<?xml version="1.0"?><p1:StockMovementDataRequest xmlns:p1="urn:ams.com.au:test:3pl:am:SAP_AM_I_005:StockMovement" xmlns:a="http://www.test.com.au/EnterpriseService/">
<Header>
<From>warehouse</From>
<To>client</To>
<DateTimeStamp>2016-04-13T11:55:30.263+10:00</DateTimeStamp>
</Header>
<StockMovementData>
<Serialised_Material>YES</Serialised_Material>
<From_Location>warehouse</From_Location>
<To_Location>client</To_Location>
<Material>7CAGL3G00</Material>
<Serial>700029611 - 700029710 #4</>
<Quantity>7.00</Quantity>
</StockMovementData>
<StockMovementData>
<Serialised_Material>YES</Serialised_Material>
<From_Location>warehouse</From_Location>
<To_Location>client</To_Location>
<Material>7CAGL3G00</Material>
<Serial>700029511 - 700029610 #3</>
<Quantity>7.00</Quantity>
</StockMovementData>
or create multiple XML with the line items