I try to add linebreaks for an XElement. Here is the tag I need to create at the beginning of my file
<enfinity
xsi:schemaLocation="http://.../impex
productattributegroup.xsd"
xmlns:xsi="http://...instance"
xmlns="http://...impex"
major="6" minor="1" family="enfinity" branch="enterprise" build="0.0.91">
here is the code I have without those linebreaks
var rootElement =
new XElement(XMLNS + "enfinity",
new XAttribute(xsi + "schemaLocation", SchemaLocation),
new XAttribute(XNamespace.Xmlns + "xsi", XSI),
new XAttribute("xmlns", XMLNS),
new XAttribute("major", "6"),
new XAttribute("minor", "1"),
new XAttribute("family", "enfinity"),
new XAttribute("branch", "enterprise"),
new XAttribute("build", "0.0.91")
);
I wonder if anyone knows how to do so?