From: Daniel M. <tub...@us...> - 2002-04-04 18:20:13
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml In directory usw-pr-cvs1:/tmp/cvs-serv18078 Modified Files: Tag: epp-0402 EPPXMLBase.java Log Message: fix so that unspec is allowed to be a non-XML string -- such as for .us Nexus data which looks like "AppPurpose=P1 NexusCategory=C31/DE" Index: EPPXMLBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp/rtk/xml/EPPXMLBase.java,v retrieving revision 1.17 retrieving revision 1.17.2.1 diff -C2 -d -r1.17 -r1.17.2.1 *** EPPXMLBase.java 16 Nov 2001 22:41:56 -0000 1.17 --- EPPXMLBase.java 4 Apr 2002 18:20:10 -0000 1.17.2.1 *************** *** 639,643 **** protected Node getUnspecNode(String unspec_string) throws IOException, SAXException { ! String method_name = "getUnspecElement()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); DOMParser parser = new DOMParser(); --- 639,643 ---- protected Node getUnspecNode(String unspec_string) throws IOException, SAXException { ! String method_name = "getUnspecNode()"; debug(DEBUG_LEVEL_THREE,method_name,"Entered"); DOMParser parser = new DOMParser(); *************** *** 668,672 **** } } ! parser.parse(new InputSource(new ByteArrayInputStream(unspec_string.getBytes()))); Document document = parser.getDocument(); --- 668,684 ---- } } ! debug(DEBUG_LEVEL_TWO,method_name,"The unspec_string is ["+unspec_string+"]"); ! try ! { ! parser.parse(new InputSource(new ByteArrayInputStream(unspec_string.getBytes()))); ! } ! catch (SAXException xcp) ! { ! debug(DEBUG_LEVEL_THREE,method_name,xcp); ! // silently accept SAXException -- they mean that ! // the XML was unparseable... ie. the unspec string is just ! // a string, nothing special. The resulting document will ! // simply contain the unspec string. ! } Document document = parser.getDocument(); |