Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with name spaces in XML

Status
Not open for further replies.

sqldev80

Programmer
May 24, 2006
5
US
I have a big XML file which has lot of data in it which is like

<item>
<g:image_link><guid>424</guid>
<g:label>AAAAAAAAAA</g:label>
<g:label>STUFFF</g:label>
<g:label>BLAH BLAH</g:label>
<g:label>MORE BLAH BLAH</g:label>
<g:location> New York USA</g:location>
</item>


If i run the file as is in IE i get an error in it. IF i remove the G: and remove the definiation for g: which is

<?xml version='1.0' encoding='UTF-8' ?>
<rss version ='2.0' xmlns:g='
then I get no errors. Otherwise I get this error

An invalid character was found in text content. Error processing resource 'file


Although there is no invalid stuff in there. If it is then file should not work even without the g: stuff

ANY HELP on this.
 
this gives me the same result as IE
that validator works like the IE
 
Really? You have actually done so or you just think so?
 
I have done it. If you enter the HTML text in the W3 validator, it uses IE to test. Try it yourself. Maybe I am doing something wrong.
 
w3 feed validator: that's the link I post. (feed means rss feed or atom.)
 
Post your RSS

Jon

"I don't regret this, but I both rue and lament it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top