Xmlport and Namespace prefix

sanoj
Member Posts: 19
Hi,
I'm trying to produce a xml root-tag that looks as follows:
<ns0:OrderMessage xmlns:ns0="http://Order_v01">
I'm using xmlport and the RTC-client.
I have tried adding the namespace as an attibute but then it gets really screwed up.
I get this result:
<OrderMessage xmlns="ns0" xmlns:ns0="http://Order_v01">
Is it possible to solve this? If not, can I use xslt to handle it?
Br, Jonas
I'm trying to produce a xml root-tag that looks as follows:
<ns0:OrderMessage xmlns:ns0="http://Order_v01">
I'm using xmlport and the RTC-client.
I have tried adding the namespace as an attibute but then it gets really screwed up.
I get this result:
<OrderMessage xmlns="ns0" xmlns:ns0="http://Order_v01">
Is it possible to solve this? If not, can I use xslt to handle it?
Br, Jonas
0
Comments
-
Try to use the XmlPort properties UseDefaultNamespace and DefaultNameSpace
If you need to use multi namespaces in the xmport output you may need to parse it though a DotNet XmlDom in a codeunit.
Below are a couple of links when working with xmlport and namespa
ces
viewtopic.php?f=23&t=5655&start=0
viewtopic.php?t=16627“This posting is provided "AS IS" with no warranties, and confers no rights.”
Lars-Bo Christensen
Software Developer @ Microsoft0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 320 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