• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » XML output loses attributes - BUG or intentional?

#1 2010-10-18 21:07:21

dministrator
Member
Registered: 2010-06-24
Posts: 31

XML output loses attributes - BUG or intentional?

I have a job that uses tOpenbravoERPInput component, which calls the REST Web service available at: "http://192.168.202.128/openbravo/ws/dal/Product/"+ context.ID

This returns an XML like this (captured via tFileOutputXML) :

Code:

<Openbravo>
<Product>
<id>F2BEBFC542E646B2ABC48DBDF5318C59</id>
<client>000000002B81ED3D012B8270D1B30019;ADClient;MyCompany;;</client>
...
...
...
</Product>
</Openbravo>

whereas if I execute the same REST url from Firefox plugin POSTER(https://addons.mozilla.org/en-US/firefox/addon/2691/), I get the following result:

Code:

<?xml version="1.0" encoding="UTF-8"?>
<ob:Openbravo xmlns:ob="http://www.openbravo.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Product id="F2BEBFC542E646B2ABC48DBDF5318C59" identifier="ALTIMA-LLC-FS">
    <id>F2BEBFC542E646B2ABC48DBDF5318C59</id>
    <client id="000000002B81ED3D012B8270D1B30019" entity-name="ADClient" identifier="MyCompany"/>
...
...
...
  </Product>
</ob:Openbravo>

Questions are

1. Why does the Talend Component tFileOutputXML lose or modify the attributes? In the example above, we lost the id and identifier attributes for PRODUCT and CLIENT tags, though their values are retained as a string.   

2. Is this by design or a bug?

3. Is there a work around?

4. Is there a way to capture XML output from a component as it is?

Please help - I'm evaluating talend for a new project and could use your responses to convince my management to stick with Talend.

Thank you.

Last edited by dministrator (2010-10-18 23:13:56)

Offline

#2 2010-10-19 20:55:10

dministrator
Member
Registered: 2010-06-24
Posts: 31

Re: XML output loses attributes - BUG or intentional?

Hello...Does any one else have a similar problem and was able to work-around this? Please share.

Thank you.

Offline

#3 2010-10-19 23:59:07

mhirt
Talend team
Registered: 2006-09-19
Posts: 1641

Re: XML output loses attributes - BUG or intentional?

If the REST webservice is available throught the GET or POST method, then you can use the tFileFetch to directly download the content of the result and save it as a file on your local file system.
Else you will have to wait for a tRest component.

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » XML output loses attributes - BUG or intentional?

Board footer

Powered by FluxBB