View an xml file in ie

Please support our RSS, Web Services and SOAP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved

Join Date: Oct 2007
Posts: 1,297
Reputation: majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about 
Solved Threads: 68
majestic0110's Avatar
majestic0110 majestic0110 is offline Offline
Nearly a Posting Virtuoso

View an xml file in ie

 
0
  #1
Jan 12th, 2008
How can I view a single xml file I wrote using IE. Have browsed to directory where I saved the file but I gat an error from IE :
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

A name was started with an invalid character. Error processing resource 'file:///C:/Documents and Settings/Phil/Desktop/1.x...

why is this ? do i need to configure ie 7 for xml compatibility or something?
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,260
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 493
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: View an xml file in ie

 
0
  #2
Jan 12th, 2008
XML elements must follow these naming rules:
  • Names can contain letters, numbers, and other characters
  • Names must not start with a number or punctuation character
  • Names must not start with the letters xml (or XML, or Xml, etc)
  • Names cannot contain spaces

Source www.w3schools.com, Element Naming
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,297
Reputation: majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about 
Solved Threads: 68
majestic0110's Avatar
majestic0110 majestic0110 is offline Offline
Nearly a Posting Virtuoso

Re: View an xml file in ie

 
0
  #3
Jan 13th, 2008
Thank you for your reply, the xml file in question has been checked over and seems correct. I have taken a file from the w3cschools web site tutorial (so I presume the syntax is perfect) to check if it works, but I still get above error! any ideas?
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,260
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 493
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: View an xml file in ie

 
1
  #4
Jan 13th, 2008
Originally Posted by peter_budo View Post
XML elements must follow these naming rules:
  • Names must not start with a number or punctuation character
Originally Posted by majestic0110 View Post
A name was started with an invalid character. Error processing resource 'file:///C:/Documents and Settings/Phil/Desktop/1.x...
That what is your problem
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,297
Reputation: majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about 
Solved Threads: 68
majestic0110's Avatar
majestic0110 majestic0110 is offline Offline
Nearly a Posting Virtuoso

Re: View an xml file in ie

 
0
  #5
Jan 13th, 2008
HI there, have discovered what the problem was.It's a little odd but maybe you might shed some light on this lol.I wrote the file in textpad and saved with .xml extension. Now I try to view in ie and ge the above mentioned error. However, I opened this file wth topstyle lite and there was one character in the file!!! a '<'. hmmm intersting so I retyped the file (using topstyle) and tried to browse in ie, and lo and behold it works fine! I thought textpad was a legitimate tool for xml writing, maybe I am wrong? thanks for your help Peter_budo.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:




Views: 4355 | Replies: 4
Thread Tools Search this Thread



Tag cloud for RSS, Web Services and SOAP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC