Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Unexpected End Tag Problem [Thread Next] Re: Unexpected End Tag ProblemTo: NULL Date: 12/8/2005 12:21:00 AM mmitchell@c... wrote: > I'm getting the error "unexpected end tag, line 1, position 3" when I > try to do a .load(filename) in vb.net > > What am I missing? > > File: > <?xml version="1.0" encoding="utf-8" ?> > <TruckTrax> > <Connection_String></Connection_String> > <User_ID>1238</User_ID> > <Event_Type></Event_Type> > <Event_Serial_Num>0</Event_Serial_Num> > <Event_Num>0</Event_Num> > </TruckTrax> Do you have a Schema or DTD for this document type? Line 1 Position 3 should be the "x" in <?xml unless the parser is taking the XML Declaration as not being part of the document, in which case it's the first "r" of <TruckTrax. Either way I'd say your software is hosed, or there's something else you haven't shown us. In cases like this, *always* test the file standalone, well away from any "environment" like .NET or an IDE, using any of the recognised commandline parsers or validators. ///Peter -- XML FAQ: http://xml.silmaril.ie/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
