KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Note: Cleaning Whitespace from XML Values
PRODUCT: 4D | VERSION: 2004 | PLATFORM: Mac & Win
Published On: November 20, 2006
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

XML element values commonly include leading or trailing whitespacecharacters that help make the source XML easier to read. Unfortunately, 4th Dimension's element reading commands, such as DOM GET XML ELEMENT VALUE and SAX GET XML ELEMENT VALUE, don'tsupport trimming leading and trailing whitespace. Fortunately, this missing functionality is easy to write and is implemented in a sample database accompanying this note. The note itself reviews the basic rules for XML whitespace and strategies for trimming it from values.

Download Complete Tech Note and Example: Windows | Mac