473,387 Members | 1,465 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,387 software developers and data experts.

Managed Extensions and XML question

BCC
Hi,

I have a need to read in a very simple xml file and initialized some objects
from the data. I was reading on the ms website that .net contains its own
XML parser, and it sounds pretty good for what I need.

However, to use the code, it looks like I need to compile with managed
extensions. Since my project does not use managed extensions, I am not sure
what the ramifications are of using them in regards to performance.

So two real questions:
1. What is the performance hit or improvement in using managed extensions?
2. If I wish to use code that uses the managed extension syntax, is it
possible to compile this code
without using managed extensions?

Any thoughts or insights are appreciated!

Thanks,
Bryan
Nov 17 '05 #1
4 970
BCC wrote:
So two real questions:
1. What is the performance hit or improvement in using managed
extensions?
Usually a huge hit in app startup time, with steady-state performance
comparable (may be worse, may be better, usually within 10-20% or so).
2. If I wish to use code that uses the managed extension syntax, is
it possible to compile this code
without using managed extensions?
No. The mere question is a contradition.
Any thoughts or insights are appreciated!


Use MSXML. It's easy to use from native (unmanaged) C++ and it's faster than
the .NET XML parser.

If you want a lightweight solution that doesn't require installing anything
on the deployment machine (like .NET or MSXML), take a look at libXML
(www.xmlsoft.ort). It's a cross-platform Xml parser that's small, fast and
easy to use.

-cd
Nov 17 '05 #2
BCC
>> So two real questions:
1. What is the performance hit or improvement in using managed
extensions?


Usually a huge hit in app startup time, with steady-state performance
comparable (may be worse, may be better, usually within 10-20% or so).


Okay, seems reasonable.
2. If I wish to use code that uses the managed extension syntax, is
it possible to compile this code
without using managed extensions?


No. The mere question is a contradition.


Not really. What I meant was that the xml managed code uses a specific
syntax to import namespaces, and requires the mscorlib.dll. I was wondering
if you could access the same functions and namespaces somehow with unmanaged
code.
Any thoughts or insights are appreciated!


Use MSXML. It's easy to use from native (unmanaged) C++ and it's faster
than the .NET XML parser.

If you want a lightweight solution that doesn't require installing
anything on the deployment machine (like .NET or MSXML), take a look at
libXML (www.xmlsoft.ort). It's a cross-platform Xml parser that's small,
fast and easy to use.

-cd


Thanks! I will go check this stuff out. Thanks for the suggestions.

B
Nov 17 '05 #3
BCC wrote:
2. If I wish to use code that uses the managed extension syntax, is
it possible to compile this code
without using managed extensions?


No. The mere question is a contradition.


Not really. What I meant was that the xml managed code uses a
specific syntax to import namespaces, and requires the mscorlib.dll. I was
wondering if you could access the same functions and namespaces
somehow with unmanaged code.


No, you can't - you can only access the managed XML classes from managed
code. That said, you can of course mix managed and unmanaged code in a
single application.

-cd
Nov 17 '05 #4
Carl Daniel [VC++ MVP] wrote:
If you want a lightweight solution that doesn't require installing
anything on the deployment machine (like .NET or MSXML), take a look
at libXML (www.xmlsoft.ort). It's a cross-platform Xml parser that's
small, fast and easy to use.


Uh, I meant www.xmlsoft.org, of course.

-cd
Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
by: Alper AKCAYOZ | last post by:
Hello Esteemed Developers and Experts, I have been using Microsoft Visual C++ .NET for 1 year. During this time, I have searhed some topics over internets. Most of the topics about .NET is...
7
by: Ekim | last post by:
hello, I'm using MANAGED C++ and need one of the following two questions answered: 1.) How can one make a global managed array? I'm thinking on something like defining static System::Byte...
2
by: BCC | last post by:
Hi, I have a need to read in a very simple xml file and initialized some objects from the data. I was reading on the ms website that .net contains its own XML parser, and it sounds pretty good...
2
by: Steven Cool | last post by:
Hi, DA PROBLEM: Once I wrote a c++ dll. I wanted to use that dll in my new c# project, so I compiled it with the CLR option. The compilation was ok. Like I said, I wanted to use the dll (with...
3
by: Ben Terry | last post by:
I have imported a legacy C++ project into a VisualStudio.NET 2003 solution. I have some new C# projects in the solution as well. I am using the managed extensions in my C++ project so that I can...
3
by: Tommy Svensson \(InfoGrafix\) | last post by:
I've been instructed to work againt a huge unmanaged C++ API from a C# application. Now, the only way, as I've understood it, is to go the Managed Extensions for C++ way. This means I have to...
3
by: Andreas | last post by:
Hi! I'm currently developing a DLL that makes use of C++ and .net (mixed) using Visual Studio 2003. Now, as I wanted to move to the new Visual Studio 2005, I converted this project into the...
9
by: Amit Dedhia | last post by:
Hi All I have a VC++ 2005 MFC application with all classes defined as unmanaged classes. I want to write my application data in xml format. Since ADO.NET has buit in functions available for...
2
by: andy6 via DotNetMonster.com | last post by:
I took a c++ 6.0 project and converted it to c++ .net 2005 project. I want to make a web service out of it. One of the new files I created was a cpp where I have the webmethod pointing to a...
2
by: kelvin.koogan | last post by:
Our company has a mix of users with VS2003 & VS2005. I'm am having difficulty working out how components written with these 2 tools can be written together. I want to be able to a) incorporate a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.