Commit 45e605d7 authored by Philippe Merle's avatar Philippe Merle

Set namespace for XML elements of SCA contribution files, else there is an...

Set namespace for XML elements of SCA contribution files, else there is an error in FraSCAti Studio.
parent 0972b0ba
......@@ -21,7 +21,7 @@
*
* Author: Gwenael Cattez
*
* Contributor(s):
* Contributor(s): Philippe Merle
*
*/
......@@ -372,6 +372,7 @@ public class Contribution
for (String deployable : this.deployables)
{
element=new Element("deployable");
element.setNamespace(defaultNamespace);
attribute=new Attribute("composite", deployable);
element.setAttribute(attribute);
contribution.addContent(element);
......@@ -382,6 +383,7 @@ public class Contribution
{
importName = "import." + importObject.getType();
element = new Element(importName);
element.setNamespace(defaultNamespace);
attribute = new Attribute(importObject.getAttributeTag(), importObject.getValue());
element.setAttribute(attribute);
contribution.addContent(element);
......@@ -392,6 +394,7 @@ public class Contribution
{
exportName = "export." + exportObject.getType();
element = new Element(exportName);
element.setNamespace(defaultNamespace);
attribute = new Attribute(exportObject.getAttributeTag(), exportObject.getValue());
element.setAttribute(attribute);
contribution.addContent(element);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment