What is an xs:NCName type and when should it be used?

后端 未结 4 1851
萌比男神i
萌比男神i 2020-12-02 16:32

I ran one of my xml files through a schema generator and everything generated was what was expected, with the exception of one node:



        
4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-02 16:51

    Practically speaking...

    Allowed characters: -, ., 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, _, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z

    Also, - and . cannot be used as the first character of the value.

    Disallowed characters: , !, ", #, $, %, &, ', (, ), *, +, ,, /, :, ;, <, =, >, ?, @, [, \, ], ^, `, {, |, }, ~

提交回复
热议问题