Example usage for org.w3c.dom Document getXmlVersion

List of usage examples for org.w3c.dom Document getXmlVersion

Introduction

In this page you can find the example usage for org.w3c.dom Document getXmlVersion.

Prototype

public String getXmlVersion();

Source Link

Document

An attribute specifying, as part of the <a href='http://www.w3.org/TR/2004/REC-xml-20040204#NT-XMLDecl'>XML declaration</a>, the version number of this document.

Usage

From source file:org.sakaiproject.myshowcase.tool.MyShowcaseGetShowcaseEvidenceMappingsController.java

private void getMappingList(Long compID) {

    try {/*from  ww w . j a v  a 2  s.  c om*/

        System.out.println("compID : " + compID);

        String orgGroupId = "192";

        WebServiceConsumer wsc = new WebServiceConsumer();

        wsc.setURL("http://www.learning-slate.com/multiport/services/services.asmx");

        wsc.setWebService("Competency");

        wsc.clear();

        wsc.setWebMethod("GetTree");

        wsc.add(new Parameter("competencyId", compID.toString()));

        wsc.add(new Parameter("orgGroupId", orgGroupId));

        wsc.list();

        System.out.println("Full results :\n" + wsc.getResults().toString());

        Document dom;

        dom = wsc.getXMLResults();

        System.out.println("Version : " + dom.getXmlVersion().toString());

        System.out.println("Still going");

        createMappingList(dom);

    } catch (Exception e) {

        System.out.println("GetMappingList Error...");

        System.out.println(e.toString());
    }
}