resolves issue #6 by adding regexp find method instead of indexOf
resolves issue #5 by adding callout processing when whole xml file is imported