Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2007

Tip: Looking for answers? Try searching our database.

possible to ignore xml errors?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joe Stateson - 26 Oct 2007 16:39 GMT
I am putting together a treeview from a web service (python script on a unix
system) that generates the following xml code

<toi Value="datetime.datetime(2007, 4, 2, 17, 23, 49, tzinfo=<UTC>)"/>

I cannot bind the file into the treeview because the tzinfo=<UTC> causes
problems.  I just discovered this when I tried to display the xml file in
IE.  Firefox displays it just fine (no error)

Anyway, is there something I can set in my page to have it ignore an error
like that above?  I cannot always get the script corrected on the unix
system.

..TIA..
bruce barker - 26 Oct 2007 18:34 GMT
the .net xml parses have no recovery from errors, that would allow them
to continue parsing and they are rather strict.

you can catch that the parse failed, but no dom is returned. you page
could test the xml first, and have a fallback xml string.

you could write a simple parser to claen up the xml to make it valid for
the common errors.

-- bruce (sqlwork.com)

> I am putting together a treeview from a web service (python script on a
> unix system) that generates the following xml code
[quoted text clipped - 10 lines]
>
> ..TIA..

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.