943,746 Members | Top Members by Rank

Jan 12th, 2008
0

View an xml file in ie

Expand Post »
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?
Similar Threads
Reputation Points: 256
Solved Threads: 72
Nearly a Posting Virtuoso
majestic0110 is offline Offline
1,306 posts
since Oct 2007
Jan 12th, 2008
0

Re: View an xml file in ie

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
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 871
Code tags enforcer
peter_budo is offline Offline
6,656 posts
since Dec 2004
Jan 13th, 2008
0

Re: View an xml file in ie

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?
Reputation Points: 256
Solved Threads: 72
Nearly a Posting Virtuoso
majestic0110 is offline Offline
1,306 posts
since Oct 2007
Jan 13th, 2008
1

Re: View an xml file in ie

Click to Expand / Collapse  Quote originally posted by peter_budo ...
XML elements must follow these naming rules:
  • Names must not start with a number or punctuation character
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
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 871
Code tags enforcer
peter_budo is offline Offline
6,656 posts
since Dec 2004
Jan 13th, 2008
0

Re: View an xml file in ie

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.
Reputation Points: 256
Solved Threads: 72
Nearly a Posting Virtuoso
majestic0110 is offline Offline
1,306 posts
since Oct 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in RSS, Web Services and SOAP Forum Timeline: Accessing a Web Service
Next Thread in RSS, Web Services and SOAP Forum Timeline: Script for accessing child nodes does not work for Firefox...





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC