7
Answers

Xml data

Rick Freeman

Rick Freeman

9y
550
1
My xml doc is returned with these two elements that are effecting the query:
<league xmlns="http://feed.elasticstats.com/schema/basketball/schedule-v2.0.xsd" id="4353138d-4c22-4396-95d8-5f587d2df25c" name="NBA" alias="NBA">
<season-schedule id="5ddc217a-a958-4616-9bdf-e081022c440b" year="2013" type="REG">
  <games>
    <game > ect...
Since were using xdoc.Descendants("game") I should be able to query the doc even if these elements are included, however I get a null...
 
The class also includes a "root" reference:
[Serializable]
[XmlRoot("game"), XmlType("game")]
public class Games
{
 
 When I remove the two elements the query works!
Answers (7)
0
sacresp

sacresp

NA 458 0 21y
Yeah, .NET Framework is too big (23698 KB) to download. But I think ordinary users are not usually those that will use .NET applications first. Not any new technology will come popular in common people very soon. I think .NET will find it's way first to corporate users. Windows 2003 Server already has .NET. How many did obtain Java virtual machine when it came available and was not part of Windows installation? ;)
0
hazarawood

hazarawood

NA 3 0 21y
Al though i know that .Net produce small files . But now .Net is not popular in common people other then programmers. So if they want to run such files they have to download .Net FrameWork which is of about 25 to 30 mb and people with dial up cannt do that. So most of the people can not use .Net files for at least 2 years as it will take time to switch to .Net 2003(windows) so there they dont have to download the framework. that is all. thanks for reply.
0
sacresp

sacresp

NA 458 0 21y
There's no such tool. You always need CLR to run managed code. Faster and smaller file size? Idon't think .NET files are very big... and JIT compiling can produce a lot faster code than this kind of "compile for all" technique.
0
james

james

NA 1.1k 312.9k 21y
None that I've ever heard of... and I'm not even sure its possible due to the architecture of the framework... since everything runs on top of it, including the Garbage Collector, and all the base classes, you would have to compile a hell of a lot into your .exe file to get all the functionality in it.
Next Recommended Forum