Hi all,
I want to generate a XML file using codeunit in NAV 2013. This is format I need to generate. Im using Dotnet variable instead of automation.
<?xml version="1.0" encoding="UTF-8"?>
<POSLog xmlns:pcms="http://www.pcmsgroup.com/XML" xmlns="http://www.nrf-arts.org/IXRetail/namespace/">
<Transaction>
<BusinessUnit>
<UnitID TypeCode="RetailStore">3104</UnitID>
<Address>
<AddressLine>Shoreham</AddressLine>
<Country Code="GB"></Country>
</Address>
</BusinessUnit>
<BusinessUnit>
<UnitID TypeCode="AdministrationCenter">A001</UnitID>
</BusinessUnit>
<WorkstationID>984</WorkstationID>
<SequenceNumber>193</SequenceNumber>
<EndDateTime>2008-05-06T16:31:28+1:00</EndDateTime>
<BeginDateTime>2008-05-06T16:31:28+1:00</BeginDateTime>
<BusinessDayDate>2008-05-01</BusinessDayDate>
<OperatorID>904</OperatorID>
<CurrencyCode>GBP</CurrencyCode>
<pcms:PCMSTransaction>
<pcms:DBSchemaVersion>3.200.3</pcms:DBSchemaVersion>
<pcms:BuildNumber>BS3.83.8.1611</pcms:BuildNumber>
<pcms:OnlineStatus>0</pcms:OnlineStatus>
<pcms:WorkstationPersonality>RET1024</pcms:WorkstationPersonality>
</pcms:PCMSTransaction>
</Transaction>
</POSLog>
I am not able to print special character like ':'.
I could print as <pcms:PCMSTransaction>
xmlMgt.AddElement(CurrNode,'pcms:PCMSTransaction','','',NewChild);
When I write like this It skips 'pcms:' in the tag and prints only 'PCMSTransaction'. ](*,)
does anyone know how to print special character like this???
Regards,
Raji