XML Invalid xml structure- why?

 <?xml version="1.0" encoding="utf-8" ?>
- <DataTableToXml xmlns="http://www.yt.com/">
  <Size>2</Size>
- <CustomerInfo>
  <id>1</id>
  <customer_number>324234</customer_number>
  <customer_name>ééé</customer_name>
  </CustomerInfo>
- <CustomerInfo>
  <id>3</id>
  <customer_number>111111</customer_number>
  <customer_name>vvvvv</customer_name>
  </CustomerInfo>
  </DataTableToXml>

i'm gettting
error: A string literal was expected, but no opening quote character was found.

what i need to change in the xml structure?
Sasha-NAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SreejithGCommented:
The characters in the text under the tag customer_name are invalid xml chars.
0
Sasha-NAuthor Commented:
you can write there any thing inside and still there be a error.
0
SreejithGCommented:
Are you validating this XML against a schema/DTD? Then you need to flow the schema/DTD.
0
Sasha-NAuthor Commented:
Sorry the error i have is
"whitespace is not allowed in this location"
0
Gertone (Geert Bormans)Information ArchitectCommented:
well, we can guess for days...
what you show us is not the original XML, but how Internet Exoplorer sees it, all mistakes corrected.

The "ééé" is not the problem. I assume it was proper UTF-8 before IE viualised it

The current error indicates that there is a space right before the xml declaration, or the first tag.
The first error indicated that you had an attribute value without quotes seperators

Can you please attach the original XML as a file?
or paste the source XML in the code snippet area?
I prefer attaching as a file

Cheers

Geert
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
XML

From novice to tech pro — start learning today.