Bug 12508 - System.Xml.Linq.XDocument.Load(string url) Error: Unknown sig element type: ELEMENT_TYPE_END
Summary: System.Xml.Linq.XDocument.Load(string url) Error: Unknown sig element type: E...
Status: RESOLVED FIXED
Alias: None
Product: Class Libraries
Classification: Mono
Component: System ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-06-01 16:16 UTC by Brian Bird
Modified: 2013-06-20 20:47 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Brian Bird 2013-06-01 16:16:43 UTC
The following code works with MS .NET 4.0 but fails with Mono 4.0.

const string stockInfoUrl = @"http://www.google.com/ig/api?stock=MSFT";
XDocument stockInfoXml = XDocument.Load (stockInfoUrl);
Comment 1 Miguel de Icaza [MSFT] 2013-06-20 20:47:27 UTC
Works just fine:

mac$ csharp -r:System.Xml.Linq
Mono C# Shell, type "help;" for help

Enter statements below.
csharp> using System.Xml.Linq;
csharp> XDocument.Load ("http://www.google.com/ig/api?stock=MSFT");
<?xml version="1.0" encoding="utf-16"?>
<xml_api_reply version="1">
  <finance module_id="0" tab_id="0" mobile_row="0" mobile_zipped="1" row="0" section="0">
    <symbol data="MSFT" />
    <pretty_symbol data="MSFT" />
    <symbol_lookup_url data="/finance?client=ig&amp;q=MSFT" />
    <company data="Microsoft Corporation" />
    <exchange data="Nasdaq" />
    <exchange_timezone data="ET" />
    <exchange_utc_offset data="+05:00" />
    <exchange_closing data="960" />
    <divisor data="2" />
    <currency data="USD" />
    <last data="33.49" />
    <high data="34.33" />
    <low data="33.37" />
    <volume data="54496758" />
    <avg_volume data="46756" />
    <market_cap data="279678.57" />
    <open data="34.26" />
    <y_close data="34.59" />
    <change data="-1.10" />
    <perc_change data="-3.18" />
    <delay data="0" />
    <trade_timestamp data="4 hours ago" />
    <trade_date_utc data="20130620" />
    <trade_time_utc data="200006" />
    <current_date_utc data="20130621" />
    <current_time_utc data="004657" />
    <symbol_url data="/finance?client=ig&amp;q=MSFT" />
    <chart_url data="/finance/chart?q=NASDAQ:MSFT&amp;tlf=12" />
    <disclaimer_url data="/help/stock_disclaimer.html" />
    <ecn_url data="" />
    <isld_last data="33.50" />
    <isld_trade_date_utc data="20130620" />
    <isld_trade_time_utc data="235706" />
    <brut_last data="" />
    <brut_trade_date_utc data="" />
    <brut_trade_time_utc data="" />
    <daylight_savings data="true" />
  </finance>
</xml_api_reply>