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</c ustomer_nu mber>
<customer_name>ééé</custom er_name>
</CustomerInfo>
- <CustomerInfo>
<id>3</id>
<customer_number>111111</c ustomer_nu mber>
<customer_name>vvvvv</cust omer_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?
- <DataTableToXml xmlns="http://www.yt.com/">
<Size>2</Size>
- <CustomerInfo>
<id>1</id>
<customer_number>324234</c
<customer_name>ééé</custom
</CustomerInfo>
- <CustomerInfo>
<id>3</id>
<customer_number>111111</c
<customer_name>vvvvv</cust
</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?
The characters in the text under the tag customer_name are invalid xml chars.
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.
ASKER
Sorry the error i have is
"whitespace is not allowed in this location"
"whitespace is not allowed in this location"
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.