I am working on clover etl tool need to write an output into an xml file , currently i am using XMLWriter to do it but it is not solving my purpose i want the xml output in below fashion
<?xml version="1.0" encoding="ISO-8859-1"?>
50427
XXXX
YYYY
aaaaa
asasada
But I am getting an output like
<?xml version="1.0" encoding="ISO-8859-1"?>
50427
XXXX
YYYY
50427
aaaaa
asasada
The Network ID is repeating and i want it in my output xml onle single time
You need to have two edges, the first will contain only the NetworkID values, the second will contain NetworkID, CustomerName, and CustomerID values.
The values from both edges will be joined using parentKey=“NetworkID”, but the NetworkID value from the second edge will be hidden by specifying fieldsIgnore=“NetworkID”.
And, you also need to set useRootElement=“false” (simply uncheck the default true value of the Use root element attribute.