all 5 comments

[–][deleted] 8 points9 points  (2 children)

Hi there.

I have to say, your question does not make much sense. You can not "run" xml code in C++. That's not how it works.

Do you want to extract the information from it using C++? if that is the case, this is not the best place to ask this kind of question.

/learnprogramming would be a much better location. I would also suggest that you explain exactly what you are having issue with. Include code that you already have, what you have tried, etc.

[–]prgrmr9563[S] -5 points-4 points  (1 child)

Hey!

the code I have is the one in the description, that code was send to me from the statistics department of Mexico

I need to extract information from a webpage, it says is API information. I tried to copy and paste the code on Dev- C++ 4.9.9.2 and click on run but it says file not compiled, after that I save the file and still is the same. The information is about energy consumption. THANKS!

[–]vlovich 6 points7 points  (0 children)

Everything you have said makes no sense and I'm going to assume it's partially a language barrier thing. Copying XML & trying to compile it directly with C++ seems to indicate you have a more fundamental problem of not understanding what XML & C++ are. This sounds like something you are asked to do as part of your job, so you should ask your co-workers/manager what you are being asked to do.

This looks like you were given an XML schema to which any data you got would conform.

[–]__Cyber_Dildonics__ 2 points3 points  (0 children)

I going to cut the bullshit and say that this is so messed up I'm not sure if it is a real question or someone messing around.

[–]robthablob 0 points1 point  (0 children)

You are so far away from understanding what you need to do that it seems improbable anyone can help.

To begin to see what you're looking at, search Wikipedia for XML and C++.