XML with empty attributes

HunkiHunki Member Posts: 5
edited 2011-11-07 in NAV Three Tier
I wrote some code to create an xml-file with XML-Dom in Navision 2009 SP1.

Till here, this is nothing special. The problem is, that every time I add an attribute to a node it will create a empty attribute on the next element.

<?xml version="1.0" encoding="ISO-8859-1"?>
<DeclareSalary xmlns="http://www.swissdec.ch/schema/sd/20090803/SalaryDeclarationServiceTypes"&gt;
<RequestContext xmlns="http://www.swissdec.ch/schema/sd/20090803/SalaryDeclarationContainer"&gt;
<UserAgent xmlns=""/>
<CompanyName xmlns=""/>
</RequestContext>
</DeclareSalary>

What can I do that these empty attributes will not occur? Does anybody has a idea?

No, i cannot create it with XML-Ports.... the code is to complex to simly use an xml port.

Thanks
Patrick

Comments

Sign In or Register to comment.