473,320 Members | 1,978 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

possible to ignore xml errors?

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=<UTCcauses
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..

Oct 26 '07 #1
1 1441
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)

Joe Stateson wrote:
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=<UTCcauses
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..
Oct 26 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Thomas Bartkus | last post by:
The meaning of REPLACE INTO is clear to me. IF the new record presents new key values, then it is inserted as a new record. IF the new record has key values that match a pre-existing record, then...
12
by: Gary | last post by:
Hi! guys, I have a SQL agent job fails because it gets 10 warnings when it runs a stored procedure. These warnings are trivial and can be ignored. Can I make it ignore these warnings and...
9
by: Justme | last post by:
Novice programmer needs help with using fgets to read and ignore the first two lines of a file. I've gone thru the previous posting regarding fgets, but none of them seems to help my situation. I...
1
by: tembil | last post by:
Hi, here's the query that I used I need to know how to ignore errors when executing LOAD DATA infile 'myFile12_out.txt' INTO TABLE itc_db.tbl_address_out fields TERMINATED BY '|' lines...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.