Class MapperUtils


  • public class MapperUtils
    extends Object
    Some utility methods like string transformations.
    Author:
    faessler
    • Constructor Detail

      • MapperUtils

        public MapperUtils()
    • Method Detail

      • getElementFragmentString

        public static String getElementFragmentString​(com.ximpleware.VTDNav vn)
                                               throws com.ximpleware.NavException
        Returns XML fragment corresponding to the XML element vn points to.
        This fragment is represented by the exact bytes of the underlying XML text document corresponding the XML element where vn is positioned.
        XML Entities are resolved.
        Parameters:
        vn - A VTDNav object positioned at the desired XML element.
        Returns:
        The entity-resolved XML String corresponding to the XML element vn points to.
        Throws:
        com.ximpleware.NavException
      • getElementText

        public static String getElementText​(com.ximpleware.VTDNav vn)
                                     throws com.ximpleware.NavException
        Throws:
        com.ximpleware.NavException