public ServerConfigXML(String xml) throws Exception {
  Document doc=XMLUtils.getXMLDocument(new ByteArrayInputStream(xml.getBytes("UTF-8")));
  Node root=XMLUtils.getRootNode(doc,DSConfigMgr.ROOT);
  defaultServerGroup=new ServerGroup(XMLUtils.getNamedChildNode(root,DSConfigMgr.SERVERGROUP,DSConfigMgr.NAME,DSConfigMgr.DEFAULT));
  smsServerGroup=new ServerGroup(XMLUtils.getNamedChildNode(root,DSConfigMgr.SERVERGROUP,DSConfigMgr.NAME,"sms"));
}

public ServerConfigXML ( String xml ) throws Exception { Document doc = XMLUtils . getXMLDocument ( new ByteArrayInputStream ( xml . getBytes ( "UTF-8" ) ) ) ; Node root = XMLUtils . getRootNode ( doc , DSConfigMgr . ROOT ) ; defaultServerGroup = new ServerGroup ( XMLUtils . getNamedChildNode ( root , DSConfigMgr . SERVERGROUP , DSConfigMgr . NAME , DSConfigMgr . DEFAULT ) ) ; smsServerGroup = new ServerGroup ( XMLUtils . getNamedChildNode ( root , DSConfigMgr . SERVERGROUP , DSConfigMgr . NAME , "sms" ) ) ; }
creates an object representing server configuration xml .
