0

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?

2
Contributors
4
Replies
5
Views
9 Years
Discussion Span
Last Post by majestic0110
Featured Replies
  • 1

    [QUOTE=peter_budo;509354]XML elements must follow these naming rules: [LIST] [*] [B][COLOR="Red"]Names must not start with a number or punctuation character[/COLOR][/B] [/LIST][/quote] [QUOTE=majestic0110;509024] [B][COLOR="Red"]A name was started with an invalid character[/COLOR][/B]. Error processing resource 'file:///C:/Documents and Settings/Phil/Desktop/[B][COLOR="Red"]1.x[/COLOR][/B]... [/QUOTE] That what is your problem Read More

0

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

0

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?

1

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

0

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.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.