XML not accepting special character
raji223
Member Posts: 2
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
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
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 327 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions