471,317 Members | 1,514 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

XML to XML conversion

Tim
The requirement is to convert an XML file from one format to another. What is
the best way to accomplish the same in C# 2.0? Coming from VB6 background, I
could think of the following:

1. Write C# code for the conversion
2. Write XSL for the conversion and invoke it from c#.

Which of the above is better in terms of Performance, Memory Consumption
etc. Are there other options available to achieve the same?
Dec 19 '05 #1
3 1168
Hello!

Are you doing this on a regular basis, or is it a one-time transformation?

C# 2.0 contains a new set of optimized XSLT extensions, allowing for
extremely fast transformation of XML documents (highly recommended). XSLT is
a great approach because the XSLT transformation files are seperate from the
C# code and thus easy to build (and change).

--
Venlig hilsen
Anders Borum / SphereWorks
Microsoft Certified Professional (.NET MCP)
Dec 19 '05 #2
I would definitely go with XSL. You never know how many formats your
document will need to be able to be tranformed to over the long haul.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but it takes a very long time,
and the bicycle has to *want* to change.

"Tim" <Ti*@discussions.microsoft.com> wrote in message
news:AA**********************************@microsof t.com...
The requirement is to convert an XML file from one format to another. What
is
the best way to accomplish the same in C# 2.0? Coming from VB6 background,
I
could think of the following:

1. Write C# code for the conversion
2. Write XSL for the conversion and invoke it from c#.

Which of the above is better in terms of Performance, Memory Consumption
etc. Are there other options available to achieve the same?

Dec 19 '05 #3
Tim
Thank you, Anders and Kevin. I shall take the XSL approach - especially
considering that it has been optimized for performance in .Net 2.0.

"Kevin Spencer" wrote:
I would definitely go with XSL. You never know how many formats your
document will need to be able to be tranformed to over the long haul.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but it takes a very long time,
and the bicycle has to *want* to change.

"Tim" <Ti*@discussions.microsoft.com> wrote in message
news:AA**********************************@microsof t.com...
The requirement is to convert an XML file from one format to another. What
is
the best way to accomplish the same in C# 2.0? Coming from VB6 background,
I
could think of the following:

1. Write C# code for the conversion
2. Write XSL for the conversion and invoke it from c#.

Which of the above is better in terms of Performance, Memory Consumption
etc. Are there other options available to achieve the same?


Dec 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Stub | last post: by
7 posts views Thread by Michael Lehn | last post: by
31 posts views Thread by Bjørn Augestad | last post: by
11 posts views Thread by Steve Gough | last post: by
2 posts views Thread by Alex Sedow | last post: by
3 posts views Thread by Steve Richter | last post: by
reply views Thread by Lou Evart | last post: by
21 posts views Thread by REH | last post: by
reply views Thread by rosydwin | last post: by

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.