Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I'm using Talend Open Studio. Is there a way to have a namespace added to xsi. Currently I am seeing: xsi:noNamespaceSchemaLocation="deafultname.xsd". Is there a way that can be changed to xsi:SchemaLocation="defaultname.xsd" rather than saying noNamespace?
Hi
You can't change this attribute directly in the job, need to modify the source code of component, the source code of component is located in <studio installation directory>\plugins\org.talend.designer.components.localprovider_8.0.1.20211104_0248\components\tAdvancedFileOutputXML. To do:
1- Open the file tAdvancedFileOutputXML_end.javajet,
2- Edit this line
doc_<%=cid%>.getRootElement().addAttribute("xsi:noNamespaceSchemaLocation", file_<%=cid%>.substring(file_<%=cid%>.lastIndexOf("/")+1)+".xsd");
3- Save the file and restart Studio.
Regards
Shong