Package org.fao.geonet.utils

Examples of org.fao.geonet.utils.XmlElementReader$NameTest


      req.executeLarge(tempFile);

        List<Namespace> namespaces = new ArrayList<Namespace>();
        namespaces.add(Namespace.getNamespace("gml", "http://www.opengis.net/gml"));
       
          XmlElementReader reader = new XmlElementReader(new FileInputStream(tempFile), "gml:featureMembers/*", namespaces);
          if (!reader.hasNext()) {
            namespaces.add(Namespace.getNamespace("wfs", "http://www.opengis.net/wfs"));
            reader = new XmlElementReader(new FileInputStream(tempFile), "wfs:FeatureCollection/gml:featureMember", namespaces);
          }
         
          while (reader.hasNext()) {
            stylesheetDirectory = schemaMan.getSchemaDir(params.outputSchema) + Geonet.Path.WFS_STYLESHEETS;
            Element records = Xml.transform(reader.next(), stylesheetDirectory + "/" + params.stylesheet, ssParams);
 
            harvest(records, fragmentHarvester);
          }
    } finally {
          if (!tempFile.delete() && tempFile.exists()) {
View Full Code Here

TOP

Related Classes of org.fao.geonet.utils.XmlElementReader$NameTest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.