Link to home
Create AccountLog in
Avatar of Sasha-N
Sasha-N

asked on

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?
Avatar of SreejithG
SreejithG
Flag of India image

The characters in the text under the tag customer_name are invalid xml chars.
Avatar of Sasha-N
Sasha-N

ASKER

you can write there any thing inside and still there be a error.
Are you validating this XML against a schema/DTD? Then you need to flow the schema/DTD.
Avatar of Sasha-N

ASKER

Sorry the error i have is
"whitespace is not allowed in this location"
ASKER CERTIFIED SOLUTION
Avatar of Gertone (Geert Bormans)
Gertone (Geert Bormans)
Flag of Belgium image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer