Add attributes using Converter

Hi everybody,

I’m using SagConverter component with CSV conversion type, and i need to create attributes in the result xml, how can i do that?

This is my template:

<?xml version="1.0" encoding="UTF-8"?> csv

I need “ID” like an attribute of “Employee”…

Thanks in advance,


Hi Malena,

The SagConverter does not currently provide a way of creating attributes. Your alternative is to use a stylesheet and the SagTransformer to take the output of the SagConverter and convert the desired elements into attributes.

Hope this helps.

Thanks! I think i’ll use the Transformer…