public static Xml readAllFromResource ( String resourceName ) { InputStream is = XmlReader . class . getResourceAsStream ( resourceName ) ; XmlReader reader = new XmlReader ( is ) ; Xml xml = reader . read ( "node()" ) ; reader . close ( ) ; return xml ; }
Read all XML content from a resource location