473,324 Members | 2,313 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Create XML file using C#

Hi,

I need to create a XML file of following format in C#. Can somebody help me with the code for this?


<?xml version="1.0"?>
<?soxtype urn:x-commerceone:document:btsox:Order.sox$1.0?>
<?import urn:x-commerceone:document:telcoapisox:OrderPost.sox$1.0 ?>
<?import urn:x-commerceone:document:telcoapisox:OrderNotification .sox$1.0?>
<?import urn:x-commerceone:document:telcoapisox:ServiceRequestOrd er.sox$1.0?>
<?import urn:x-commerceone:document:btsox:DSL.sox$1.0?>
<?import urn:x-commerceone:document:btsox:DSLMessageInfo.sox$1.0? >
<?import urn:x-commerceone:document:com:commerceone:CBL:CBL.sox$1 .0?>
<or:Order OrderID="123" NoOfEntries="1" xmlns="urn:x-commerceone:document:com:commerceone:CBL:CBL.sox$1 .0" xmlns:bat="urn:x-commerceone:document:btsox:Batch.sox$1.0" xmlns:sro="urn:x-commerceone:document:telcoapisox:ServiceRequestOrd er.sox$1.0" xmlns:dsl="urn:x-commerceone:document:btsox:DSL.sox$1.0" xmlns:orn="urn:x-commerceone:document:telcoapisox:OrderNotification .sox$1.0" xmlns:poc="urn:x-commerceone:document:telcoapisox:OrderPost.sox$1.0 ">
<orc:OrderCreate>.................


Thanks in advance

Vandana.
Jun 29 '07 #1
2 1758
Dököll
2,364 Expert 2GB
Hi,

I need to create a XML file of following format in C#. Can somebody help me with the code for this?

Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0"?>
  2. <?soxtype urn:x-commerceone:document:btsox:Order.sox$1.0?>
  3. <?import urn:x-commerceone:document:telcoapisox:OrderPost.sox$1.0?>
  4. <?import urn:x-commerceone:document:telcoapisox:OrderNotification.sox$1.0?>
  5. <?import urn:x-commerceone:document:telcoapisox:ServiceRequestOrder.sox$1.0?>
  6. <?import urn:x-commerceone:document:btsox:DSL.sox$1.0?>
  7. <?import urn:x-commerceone:document:btsox:DSLMessageInfo.sox$1.0?>
  8. <?import urn:x-commerceone:document:com:commerceone:CBL:CBL.sox$1.0?>
  9. <or:Order OrderID="123" NoOfEntries="1" xmlns="urn:x-commerceone:document:com:commerceone:CBL:CBL.sox$1.0" xmlns:bat="urn:x-commerceone:document:btsox:Batch.sox$1.0" xmlns:sro="urn:x-commerceone:document:telcoapisox:ServiceRequestOrder.sox$1.0" xmlns:dsl="urn:x-commerceone:document:btsox:DSL.sox$1.0" xmlns:orn="urn:x-commerceone:document:telcoapisox:OrderNotification.sox$1.0" xmlns:poc="urn:x-commerceone:document:telcoapisox:OrderPost.sox$1.0">
  10.     <orc:OrderCreate>.................
  11.  
Thanks in advance

Vandana.
Greetings and welcome, Vandana123!

Let's give it a whirl with C# first. And continue to stay tuned for additionla help when.if you're stuck...
Jul 4 '07 #2
Hi,

I need to create a XML file of following format in C#. Can somebody help me with the code for this?


<?xml version="1.0"?>
<?soxtype urn:x-commerceone:document:btsox:Order.sox$1.0?>
<?import urn:x-commerceone:document:telcoapisox:OrderPost.sox$1.0 ?>
<?import urn:x-commerceone:document:telcoapisox:OrderNotification .sox$1.0?>
<?import urn:x-commerceone:document:telcoapisox:ServiceRequestOrd er.sox$1.0?>
<?import urn:x-commerceone:document:btsox:DSL.sox$1.0?>
<?import urn:x-commerceone:document:btsox:DSLMessageInfo.sox$1.0? >
<?import urn:x-commerceone:document:com:commerceone:CBL:CBL.sox$1 .0?>
<or:Order OrderID="123" NoOfEntries="1" xmlns="urn:x-commerceone:document:com:commerceone:CBL:CBL.sox$1 .0" xmlns:bat="urn:x-commerceone:document:btsox:Batch.sox$1.0" xmlns:sro="urn:x-commerceone:document:telcoapisox:ServiceRequestOrd er.sox$1.0" xmlns:dsl="urn:x-commerceone:document:btsox:DSL.sox$1.0" xmlns:orn="urn:x-commerceone:document:telcoapisox:OrderNotification .sox$1.0" xmlns:poc="urn:x-commerceone:document:telcoapisox:OrderPost.sox$1.0 ">
<orc:OrderCreate>.................


Thanks in advance

Vandana.

can u create xml element with ':' character in c#.net [desktop applicaton]
Jul 5 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
5
by: Michael Sperlle | last post by:
Is it possible? Bestcrypt can supposedly be set up on linux, but it seems to need changes to the kernel before it can be installed, and I have no intention of going through whatever hell that would...
8
by: barb | last post by:
So that the world at large benefits from our efforts, here is one fully documented way to use Windows Irfanview freeware to create thumbnail web galleries (http://www.irfanview.com). STEP 1:...
23
by: sandy | last post by:
I need (okay, I want) to make a dynamic array of my class 'Directory', within my class Directory (Can you already smell disaster?) Each Directory can have subdirectories so I thought to put these...
15
by: lxyone | last post by:
Using a flat file containing table names, fields, values whats the best way of creating html pages? I want control over the html pages ie 1. layout 2. what data to show 3. what controls to...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shćllîpôpď 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.