How do I add a space in an XML schema element? I’d like to have “Last Name” without using an underscore. Thanks.
<xs:element name="Last Name" type="xs:string" minOccurs="0" />
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
You can’t. That would go against the XML specification. The space character is used as a delimiter in XML and has special meaning. It cannot appear in element names.
Think about the resulting element that you would be defining with that declaration:
That doesn’t look anything like XML and would be rejected by any XML parser.