Menu

#467 (ok 3.1.5) XML does not allow spaces in element names

closed-accepted
1
2009-05-15
2009-04-06
No

The XML specification explicitly states that no whitespace is allowed in element names (while MySQL allows for whitespace in database, table and column names), as seen here:

http://www.w3schools.com/XML/xml_elements.asp

Virtually all XML parsers use whitespace characters in XML element to differentiate between the elements name and any attributes that is possesses. A name with whitespace interferes with this and disrupts all XML parsers that behave in this way.

Discussion

  • Anonymous

    Anonymous - 2009-04-06
     
  • Anonymous

    Anonymous - 2009-04-06

    Forgot to mention that my solution to this problem was to replace whitespace in database, table, and column names with underscores (a "_").

     
  • Marc Delisle

    Marc Delisle - 2009-04-19
    • assigned_to: nobody --> lem9
     
  • Marc Delisle

    Marc Delisle - 2009-04-19

    Thanks, merged for 3.1.5. I changed the title because "whitespace" means more characters than just spaces.

     
  • Marc Delisle

    Marc Delisle - 2009-04-19
    • priority: 5 --> 1
    • summary: XML Export - Whitespace in Element Names Fix --> (ok 3.1.5) XML does not allow spaces in element names
    • status: open --> open-accepted
     
  • Marc Delisle

    Marc Delisle - 2009-05-15
    • status: open-accepted --> closed-accepted
     
MongoDB Logo MongoDB