XML Invalid xml structure- why?

Posted on 2008-11-03
Last Modified: 2013-11-11
 <?xml version="1.0" encoding="utf-8" ?>
- <DataTableToXml xmlns="">
- <CustomerInfo>
- <CustomerInfo>

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?
Question by:Sasha-N
    LVL 3

    Expert Comment

    The characters in the text under the tag customer_name are invalid xml chars.

    Author Comment

    you can write there any thing inside and still there be a error.
    LVL 3

    Expert Comment

    Are you validating this XML against a schema/DTD? Then you need to flow the schema/DTD.

    Author Comment

    Sorry the error i have is
    "whitespace is not allowed in this location"
    LVL 60

    Accepted Solution

    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



    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Suggested Solutions

    Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
    I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
    Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now