Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 3.5 and Visual Studio. 2008 > .NET Framework 3.5
|
.NET Framework 3.5 For discussion of the Microsoft .NET Framework 3.5.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 3.5 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 5th, 2008, 09:49 AM
Registered User
 
Join Date: May 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Unexpected end of file while parsing PI...

Haya all :)

Im trying to make a asp script that gets an xml feed from http://eu.wowarmory.com/guild-info.x...etribution&p=1

however i keep on getting an error "Unexpected end of file while parsing PI has occurred. Line 2209, position 1". I looked around and found out that this is because that blizzard servers detects the user agent calling there site determines if the useragent can support the XMLDom. If it does then they send the XML to the browser untransformed. If not then they send the transformed XML as HTML. I tryed some ways around fixing this prob using HttpRequest but in VWD 2008 HttpRequest dosent seem to be supported? All the coding that i found using HttpRequest and HttpWebRaquest did'nt work, any suggestions using .net 3.5? Im scripting in VB.

Thanks for any help offered :)

 
Old June 20th, 2008, 01:46 AM
Registered User
 
Join Date: Jun 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Please check the xml is well-formed or not.

 
Old June 20th, 2008, 04:18 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

HttpWebRequest is a part of the standard .Net framework - I don't believe that you can't use it in Visual Web Developer (I assume this is the express edition).

When you say the code 'didn't work' then what was the problem?

/- Sam Judson : Wrox Technical Editor -/





Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Parsing XML File Sojan80 XML 7 January 7th, 2008 06:09 PM
Unexpected end of file while parsing... anup_daware C# 1 February 7th, 2007 05:14 AM
Parse error: parse error, unexpected $end Ayodeji Adegbaju Pro PHP 3 January 12th, 2007 12:21 PM
unexpected end of file Spivonious Visual C++ 2 September 21st, 2004 07:44 AM
unexpected end of file question Spivonious C++ Programming 4 September 15th, 2004 02:24 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.