public class ISO9075 extends Object
c
is not valid at a certain position in an XML 1.0
NCName it is encoded in the form: '_x' + hexValueOf(c) + '_'.public static String encode(String name)
name
as specified in ISO 9075.name
- the String
to encode.String
or name
if it does
not need encoding.public static String encodePath(String path)
path
as specified in ISO 9075. Please note that
the character '[
' is not encoded but rather interpreted as
the start of an index in a path segment.path
- the String
to encode.String
.Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.