Först försökte jag med xpath och med hjälp av xpather fick jag fram söksträngen:
Code: Select all
/html/body/div[@id='page']/div[@id='main-copy']/div/div/div/table[1]/tbody/tr[3]/td[1]/table/tbody/tr[2]/td[2]/span[@id='ajaxtemp']
Code: Select all
{BusinessAccessDataCollection - Collection} --<Error> -- 2011-01-01 16:37:18 -- Failed to collect data for data source with id 3 and name Viby, Sollentuna. Exception:
Level 1) The underlying connection was closed: The connection was closed unexpectedly.
StackTrace for Level 1:
at System.Net.HttpWebRequest.GetResponse()
at System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials)
at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
at System.Xml.XmlTextReaderImpl.OpenStream(Uri uri)
at System.Xml.XmlTextReaderImpl.PushExternalEntity(SchemaEntity entity, Int32 entityId)
at System.Xml.XmlTextReaderImpl.DtdParserProxy_PushEntity(SchemaEntity entity, Int32 entityId)
at System.Xml.XmlTextReaderImpl.DtdParserProxy.System.Xml.IDtdParserAdapter.PushEntity(SchemaEntity entity, Int32 entityId)
at System.Xml.DtdParser.HandleEntityReference(XmlQualifiedName entityName, Boolean paramEntity, Boolean inLiteral, Boolean inAttribute)
at System.Xml.DtdParser.HandleEntityReference(Boolean paramEntity, Boolean inLiteral, Boolean inAttribute)
at System.Xml.DtdParser.GetToken(Boolean needWhiteSpace)
at System.Xml.DtdParser.ParseSubset()
at System.Xml.DtdParser.ParseExternalSubset()
at System.Xml.DtdParser.ParseInDocumentDtd(Boolean saveInternalSubset)
at System.Xml.DtdParser.Parse(Boolean saveInternalSubset)
at System.Xml.XmlTextReaderImpl.DtdParserProxy.Parse(Boolean saveInternalSubset)
at System.Xml.XmlTextReaderImpl.ParseDoctypeDecl()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.LoadXml(String xml)
at SwitchKing.Server.BusinessAccess.DataCollection.Collectors.Xml.AbstractXmlCollector.GetXmlDataFromContent(String content)
at SwitchKing.Server.BusinessAccess.DataCollection.Collectors.Xml.AbstractXmlCollector.GetDataFromSource(Int32 maxBatchSize, CollectorStatus& status, Int32& documentsCollected, List`1& urisCollectedSuccessfully)
at SwitchKing.Server.BusinessAccess.DataCollection.Collectors.Xml.SimpleXmlCollector.ReadFromSource()
at SwitchKing.Server.BusinessAccess.DataCollection.Collectors.Xml.SimpleXmlCollector.Collect()
at SwitchKing.Server.BusinessAccess.DataCollection.Engines.DataCollectorEngine.Collect(DataSource src, DataSourceEntity& srcAccess, DataSourceValueEntity& valueAccess, EntityLogEntryEntity& logAccess)
Code: Select all
{BusinessAccessDataCollection - Collection} --<Error> -- 2011-01-01 16:33:35 -- Failed to collect data for data source with id 3 and name Viby, Sollentuna. Exception:
Level 1) The underlying connection was closed: The connection was closed unexpectedly.
StackTrace for Level 1:
at System.Net.HttpWebRequest.GetResponse()
at System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials)
at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
at System.Xml.XmlTextReaderImpl.OpenStream(Uri uri)
at System.Xml.XmlTextReaderImpl.PushExternalEntity(SchemaEntity entity, Int32 entityId)
at System.Xml.XmlTextReaderImpl.DtdParserProxy_PushEntity(SchemaEntity entity, Int32 entityId)
at System.Xml.XmlTextReaderImpl.DtdParserProxy.System.Xml.IDtdParserAdapter.PushEntity(SchemaEntity entity, Int32 entityId)
at System.Xml.DtdParser.HandleEntityReference(XmlQualifiedName entityName, Boolean paramEntity, Boolean inLiteral, Boolean inAttribute)
at System.Xml.DtdParser.HandleEntityReference(Boolean paramEntity, Boolean inLiteral, Boolean inAttribute)
at System.Xml.DtdParser.GetToken(Boolean needWhiteSpace)
at System.Xml.DtdParser.ParseSubset()
at System.Xml.DtdParser.ParseExternalSubset()
at System.Xml.DtdParser.ParseInDocumentDtd(Boolean saveInternalSubset)
at System.Xml.DtdParser.Parse(Boolean saveInternalSubset)
at System.Xml.XmlTextReaderImpl.DtdParserProxy.Parse(Boolean saveInternalSubset)
at System.Xml.XmlTextReaderImpl.ParseDoctypeDecl()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.LoadXml(String xml)
at SwitchKing.Server.BusinessAccess.DataCollection.Collectors.Xml.AbstractXmlCollector.GetXmlDataFromContent(String content)
at SwitchKing.Server.BusinessAccess.DataCollection.Collectors.Xml.AbstractXmlCollector.GetDataFromSource(Int32 maxBatchSize, CollectorStatus& status, Int32& documentsCollected, List`1& urisCollectedSuccessfully)
at SwitchKing.Server.BusinessAccess.DataCollection.Collectors.Xml.SimpleXmlCollector.ReadFromSource()
at SwitchKing.Server.BusinessAccess.DataCollection.Collectors.Xml.SimpleXmlCollector.Collect()
at SwitchKing.Server.BusinessAccess.DataCollection.Engines.DataCollectorEngine.Collect(DataSource src, DataSourceEntity& srcAccess, DataSourceValueEntity& valueAccess, EntityLogEntryEntity& logAccess)
Jag tycker egentligen mest det ser ut som att det är problem att överhuvud taget hämta sidan. Har jag anget länken i fel format?
Eftersom forumet är indexerat på Google lägger jag länken i en bilaga för jag vill inte att den här diskussionen ska associeras med sidan.