Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all articles
Browse latest Browse all 10032

XML Export with CDATA or special chars

$
0
0
Hello to everybody,
Iam trying to export xml from NAV 2015 to another system with WS. Iam using CU XML DOM Management and I need to replace this:

-<Order xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ControllingInstance="TecCom" Version="4.1" Type="Invoice">
<Document/>
-<OrderHeader OrderType="RequestForOffer">
-<OrderIssueDate>
<Date Format="YYYYMMDD">29.02.16</Date>
</OrderIssueDate>
<CustomerInfo DispatchMode="Normal" Name="KS"/>
-<SellerParty>
<PartyNumber Qualifier="BuyerNumber">BUYERNUMBER</PartyNumber>
</SellerParty>
-<BuyerParty>
<PartyNumber Qualifier="SupplierNumber">SUPPLIERNUBBER</PartyNumber>
</BuyerParty>
<Currency>CZK</Currency>
<OrderProcessing/>
</OrderHeader>
-<OrderItem>
<PositionNumber>1</PositionNumber>
-<RequestedQuantity>
<Quantity>1</Quantity>
</RequestedQuantity>
-<ProductId>
<MakerCode>*</MakerCode>
<ProductNumber>50007543</ProductNumber>
<ProductName>zdvihátko vent.1,5dCi/7,70mm</ProductName>
</ProductId>
<ProductDescription/>
<ItemProcessing/>
</OrderItem>
-<OrderItem>
<PositionNumber>1</PositionNumber>
-<RequestedQuantity>
<Quantity>1</Quantity>
</RequestedQuantity>
-<ProductId>
<MakerCode>*</MakerCode>
<ProductNumber>50007544</ProductNumber>
<ProductName>zdvihátko vent.1,5dCi/7,75mm</ProductName>
</ProductId>
<ProductDescription/>
<ItemProcessing/>
</OrderItem>
</Order>



into this :


&lt;Order xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;&#13;
&lt;Document Type=&quot;Invoice&quot; Version=&quot;4.1&quot; ControllingInstance=&quot;TecCom&quot;/&gt;
&lt;OrderHeader OrderType=&quot;RequestForOffer&quot;&gt;
&lt;OrderIssueDate&gt;
&lt;Date Format=&quot;YYYYMMDD&quot;&gt;20160225&lt;/Date&gt;
&lt;/OrderIssueDate&gt;
&lt;CustomerInfo Name=&quot;KS&quot;/&gt;
&lt;SellerParty&gt;
&lt;PartyNumber Qualifier=&quot;BuyerNumber&quot;&gt;7&lt;/PartyNumber&gt;
&lt;/SellerParty&gt;
&lt;BuyerParty&gt;
&lt;PartyNumber Qualifier=&quot;SupplierNumber&quot;&gt;615016&lt;/PartyNumber&gt;
&lt;/BuyerParty&gt;
&lt;Currency&gt;CZK&lt;/Currency&gt;
&lt;OrderProcessing DispatchMode=&quot;Normal&quot;/&gt;
&lt;/OrderHeader&gt;
&lt;OrderItem&gt;
&lt;PositionNumber&gt;1&lt;/PositionNumber&gt;
&lt;RequestedQuantity&gt;
&lt;Quantity&gt;26&lt;/Quantity&gt;
&lt;/RequestedQuantity&gt;
&lt;ProductId&gt;
&lt;MakerCode&gt;*&lt;/MakerCode&gt;
&lt;ProductNumber&gt;50007544&lt;/ProductNumber&gt;
&lt;/ProductId&gt;
&lt;ProductDescription&gt;
&lt;ProductName&gt;desc&lt;/ProductName&gt;
&lt;/ProductDescription&gt;
&lt;ItemProcessing/&gt;
&lt;/OrderItem&gt;
&lt;/Order&gt;

I know , that i have to use cdata or special chars strings, but dont know, how to do it. Is here some possibility to use 'Microsoft XML, v6.0'.IXMLDOMCDATASection or somethig else ???



Thank's to everybody.

George

Viewing all articles
Browse latest Browse all 10032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>