Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 78929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T21:03:54+00:00 2026-05-10T21:03:54+00:00

I have an XSD file that is encoded in UTF-8, and any text editor

  • 0

I have an XSD file that is encoded in UTF-8, and any text editor I run it through doesn’t show any character at the beginning of the file, but when I pull it up in Visual Studio’s debugger, I clearly see an empty box in front of the file.

Box in file

I also get the error:

Data at the root level is invalid. Line 1, position 1.

alt text

Anyone know what this is?

Update: Edited post to qualify type of file. It’s an XSD file created by Microsoft’s XSD creator.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T21:03:54+00:00Added an answer on May 10, 2026 at 9:03 pm

    It turns out, the answer is that what I’m seeing is a Byte Order Mark, which is a character that tells whatever is loading the document what it is encoded in. In my case, it’s encoded in utf-8, so the corresponding BOM was EF BB BF, as shown below. To remove it, I opened it up in Notepad++ and clicked on ‘Encode in UTF-8 without BOM’, as shown below:

    Saving in NotePad++.

    To actually see the BOM, I had to open it up in TextPad in Binary mode:, and conducted a Google search for ‘EF BB BF‘.

    binary mode

    It took me about 8 hours to find out this was what was causing it, so I thought I’d share this with everyone.

    Update: If I had read Joel Spolsky’s blog post: The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!), then I might not have had this problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So here's the scenario...I have an XSD file describing all the objects that I
I am working on Jboss 4.05 , I have an xsd file that was
I have an XML file that I used to create an XSD File and
I have an XML file that I'm trying to validate against an XSD file
I have created an XSD and have run XSD.exe on top of that .xsd
I have a problem with a ColdFusion webservice I've created. The service accepts XML
I am using trang to convert a RELAX NG .rng file to an XML
I am writing a function to dynamically generate my sitemap and sitemap index. According
This is a silly question but How do I add an App_Data folder to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.