Baanboard.com

Go Back   Baanboard.com

User login

Frontpage Sponsor

Main

Poll
Where is your Baan/LN hardware located?
On Premise
57%
Hosted Data Center
14%
Cloud (Azure/AWS - Not Infor Cloudsuite)
29%
Infor Cloudsuite
0%
Total votes: 7

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 12:11.


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