Baanboard.com

Go Back   Baanboard.com

User login

Frontpage Sponsor

Main

Google search


Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
15%
200 - 500 GB
27%
500 - 800 GB
3%
800 - 1200 GB
9%
1200 - 1500 GB
12%
1500 - 2000 GB
12%
> 2000 GB
21%
Total votes: 33

Baanboard at LinkedIn


Reference Content

 
Verify the used characters
By patvdv at 26 Feb 2008 - 21:57

Verify the used characters

Synopsis

 long xmlContainsValidCharactersOnly(string inputstring)

XML library function

int  xmlContainsValidTssCharactersOnly(const char * aTss);

Description

This function verifies whether the supplied string contains valid characters only.

According to [XMLSTD], the following Unicode characters are allowed in an XML document:

 Char ::=  #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]

All other characters are forbidden. There is no possibility to escape them. The forbidden characters are:

  • ASCII control characters in the range [#x0-#x1F], except the allowed characters #x9 (Horizontal Tab), #xA (Line Feed), and #xD (Carriage Return);
  • Unicode surrogate characters in the range [#xD800-#xDFFF];
  • The <not a character> Unicode values #xFFFE and #xFFFF.

Arguments

inputstring

inputstring is converted from TSS to UTF-8, and the resulting characters are checked for validity.

Return values

1

Success; inputstring contains valid characters only.

0

Error; conversion of inputstring from TSS to UTF-8 failed or a forbidden character was encountered in the resulting UTF-8 string.


0
No votes yet


All times are GMT +2. The time now is 13:03.


©2001-2018 - Baanboard.com - Baanforums.com