Results 1 to 4 of 4

Thread: name_array elements with quotes

  1. #1
    Junior Member
    Join Date
    Mar 2006
    Location
    Spain
    Posts
    24

    name_array elements with quotes

    I've noticed the element Name_array contains a list of names without quotes, shouldn't be better to make them quoted names? that would allow names with spaces, like this:

    <Name_array id="abc" count="3"> "hello" "how are you" "I'm okey, thanks" </Name_array>

  2. #2
    Senior Member
    Join Date
    Apr 2005
    Location
    Feeling Software, Montreal, Quebec
    Posts
    111
    An alternative would be to change all the spaces to %20, as in HTML.. I think I've seen a unicode version of that somewhere, too. (&0020?).
    Guillaume Laforte
    Feeling Software Inc
    http://www.feelingsoftware.com

  3. #3
    Junior Member
    Join Date
    Mar 2006
    Location
    Spain
    Posts
    24
    Quote Originally Posted by glaforte
    An alternative would be to change all the spaces to %20, as in HTML.. I think I've seen a unicode version of that somewhere, too. (&0020?).

    I don't think this is possible, since some xml parsers replace the %20 by spaces as soon as they load the document in memory, at the time you read the table from the DOM, you would not be able to distinguish between the true spaces and those replaced by %20

  4. #4
    Senior Member
    Join Date
    Aug 2004
    Location
    California
    Posts
    771
    Spaces are not allowed in the <Name_array> . The data type is a list of XML Schema Name (<xs:Name>) values. The legal characters for <xs:Name> are documented here:

    http://www.w3.org/TR/2004/REC-xmlschema ... 1028/#Name
    http://www.w3.org/TR/2000/WD-xml-2e-20000814#NT-Name

    As you can see, the only punctuation characters allowed are | '.' | '-' | '_' | ':' |.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •