|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Yesterday @ 6:14 AM
Points: 1,102,
Visits: 1,197
|
|
Toreador (5/21/2010)
Not quite the same, but I've now done exactly the above and get the same error. Note - the error appears in a popup window. I've a feeling that depending on your browser settings the error may show as an exclamation mark in the status bar instead, double-clicking shows the error.
If you are using Notepad as your text editor, try to use Save As and check file encoding. XMLs work fine with UTF-8. If you have xml declaration, encodings must fit.
Just because a browser might display it doesn't mean it's valid! IE can cope with all sorts of invalid HTML as well, making (sometimes correct!) guesses about what is intended, but the HTML is still wrong.
It's playing with words. XML contains invalid characters. Browsers are allowed to display them. It's in the grey zone; neither valid, nor strictly invalid. You can't compare XML and HTML. XML is very strict, HTML is very relaxed by definition.
See, understand, learn, try, use efficient © Dr.Plch
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Friday, May 17, 2013 9:52 AM
Points: 1,356,
Visits: 4,761
|
|
honza.mf (5/21/2010) If you are using Notepad as your text editor, try to use Save As and check file encoding. XMLs work fine with UTF-8. If you have xml declaration, encodings must fit.
Yes, it's UTF-8. It's definitely related to the invalid characters - if I edit it and remove all the '' then it displays fine.
This gives the error: <rows> <_x0023_t a="" /> </rows>
This does not: <rows> <_x0023_t a="x0;" /> </rows>
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Yesterday @ 6:14 AM
Points: 1,102,
Visits: 1,197
|
|
Toreador (5/21/2010)
This gives the error: <rows> <_x0023_t a="" /> </rows>
This does not: <rows> <_x0023_t a="x0;" /> </rows>
It can be some error during copy-paste. I had no problem. Where have you copied the XML segment from?
Bad thing in these forums is, HTML washes all XML/HTML details away, as you can see in the "source" of your post and the displayed result. And the devil is in details.
See, understand, learn, try, use efficient © Dr.Plch
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Friday, May 17, 2013 9:52 AM
Points: 1,356,
Visits: 4,761
|
|
honza.mf (5/21/2010) It can be some error during copy-paste. I had no problem. Where have you copied the XML segment from?
Bad thing in these forums is, HTML washes all XML/HTML details away, as you can see in the "source" of your post and the displayed result. And the devil is in details.
Copied from the output of the SQL. And the XML displayed in my post is exactly the same as what I pasted.
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 5:48 PM
Points: 7,088,
Visits: 7,143
|
|
Nice question. Illustrates how silly some of XML is.
Tom Que conclure à la fin de tous mes longs propos? C'est que les préjugés sont la raison des sots. (Voltaire, 1756)
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 5:30 AM
Points: 861,
Visits: 1,436
|
|
Which IE version? One should be very careful to post an answer referring to a specific application without an explicit version. Sorry but not all machines will have the same results in these conditions.
Best regards,
Best regards,
Andre Guerreiro Neto
Database Analyst http://www.softplan.com.br MCITPx1/MCTSx2
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Yesterday @ 6:14 AM
Points: 1,102,
Visits: 1,197
|
|
codebyo (9/3/2011) Which IE version? One should be very careful to post an answer referring to a specific application without an explicit version. Sorry but not all machines will have the same results in these conditions.
Best regards,
Two or three last versions. Which one have you tried?
See, understand, learn, try, use efficient © Dr.Plch
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 5:30 AM
Points: 861,
Visits: 1,436
|
|
honza.mf (9/4/2011)
codebyo (9/3/2011) Which IE version? One should be very careful to post an answer referring to a specific application without an explicit version. Sorry but not all machines will have the same results in these conditions.
Best regards,
Two or three last versions. Which one have you tried?
Well, I was using IE 7. An error is shown. The same as of those posts before mine. And I have edited the XML to contain <root>. Not sure what happened then. Maybe it's only me. 
Best regards,
Best regards,
Andre Guerreiro Neto
Database Analyst http://www.softplan.com.br MCITPx1/MCTSx2
|
|
|
|