Pure Programmer
Blue Matrix


Cluster Map

Project: XML Encoding Filter

Write a filter program that transforms the input Unicode text stream into properly encoded XML. The characters left angle bracket, right angle bracket, ampersand, apostrophe and double quotes need to be converted to their corresponding XML entities <, >, &, ' and ". Any codepoint higher than 127 should be encoded as a hexadecimal character entity such as ሴ.

See [[List of XML and HTML character entity references]]

Output
$ swiftc XMLEncodingFilter.swift -I . -L . -lUtils error: link command failed with exit code 1 (use -v to see invocation) ld: library not found for -lUtils clang: error: linker command failed with exit code 1 (use -v to see invocation) $ swiftc XMLEncodingFilter.swift -I . -L . -lUtils error: link command failed with exit code 1 (use -v to see invocation) ld: library not found for -lUtils clang: error: linker command failed with exit code 1 (use -v to see invocation)

Solution