You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by am...@apache.org on 2006/05/09 21:02:36 UTC

svn commit: r405504 [1/3] - in /xerces/c/trunk/swig: interfaces/ perl/ perl/samples/ perl/t/

Author: amassari
Date: Tue May  9 12:02:33 2006
New Revision: 405504

URL: http://svn.apache.org/viewcvs?rev=405504&view=rev
Log:
Updated test to use the new DOM3 API

Modified:
    xerces/c/trunk/swig/interfaces/DOM.i
    xerces/c/trunk/swig/interfaces/ignore.i
    xerces/c/trunk/swig/interfaces/parsers.i
    xerces/c/trunk/swig/interfaces/typemaps-general.i
    xerces/c/trunk/swig/perl/Xerces.cpp
    xerces/c/trunk/swig/perl/Xerces.pm
    xerces/c/trunk/swig/perl/samples/DOMCreate.pl
    xerces/c/trunk/swig/perl/samples/DOMPrint.pl
    xerces/c/trunk/swig/perl/t/DOMElement.t
    xerces/c/trunk/swig/perl/t/PerlErrorHandler.t
    xerces/c/trunk/swig/perl/t/SAX2XMLReader.t
    xerces/c/trunk/swig/perl/t/SAXException.t
    xerces/c/trunk/swig/perl/t/XMLUni.t

Modified: xerces/c/trunk/swig/interfaces/DOM.i
URL: http://svn.apache.org/viewcvs/xerces/c/trunk/swig/interfaces/DOM.i?rev=405504&r1=405503&r2=405504&view=diff
==============================================================================
--- xerces/c/trunk/swig/interfaces/DOM.i (original)
+++ xerces/c/trunk/swig/interfaces/DOM.i Tue May  9 12:02:33 2006
@@ -65,7 +65,6 @@
 %include "xercesc/dom/DOMNodeList.hpp"
 %include "xercesc/dom/DOMNamedNodeMap.hpp"
 %include "xercesc/dom/DOMDocumentFragment.hpp"
-%include "xercesc/dom/DOMDocumentType.hpp"
 %include "xercesc/dom/DOMEntityReference.hpp"
 %include "xercesc/dom/DOMNotation.hpp"
 %include "xercesc/dom/DOMProcessingInstruction.hpp"
@@ -83,6 +82,7 @@
 /*
  * Introduced in DOM Level 3
  */
+%include "xercesc/dom/DOMConfiguration.hpp"
 %include "xercesc/dom/DOMImplementationLS.hpp"
 %include "xercesc/dom/DOMImplementation.hpp"
 %include "xercesc/dom/DOMImplementationSource.hpp"
@@ -102,6 +102,7 @@
 %include "xercesc/dom/DOMLSParser.hpp"
 
 // DOMWriter
+%include "xercesc/dom/DOMLSOutput.hpp"
 %import "xercesc/framework/XMLFormatter.hpp"
 %include "xercesc/framework/StdOutFormatTarget.hpp"
 %include "xercesc/framework/LocalFileFormatTarget.hpp"

Modified: xerces/c/trunk/swig/interfaces/ignore.i
URL: http://svn.apache.org/viewcvs/xerces/c/trunk/swig/interfaces/ignore.i?rev=405504&r1=405503&r2=405504&view=diff
==============================================================================
--- xerces/c/trunk/swig/interfaces/ignore.i (original)
+++ xerces/c/trunk/swig/interfaces/ignore.i Tue May  9 12:02:33 2006
@@ -111,30 +111,33 @@
 %ignore MemBufInputSource(const XMLByte* const, const unsigned int, const XMLCh* const, 
                           const bool, MemoryManager *const);
 %ignore Wrapper4InputSource(InputSource* const);
-%ignore Wrapper4InputSource(InputSource* const, const bool adoptFlag
+%ignore Wrapper4InputSource(InputSource* const, const bool 
         , MemoryManager* const);
-%ignore Wrapper4DOMInputSource(
-        DOMInputSource* const inputSource
-        , const bool
+%ignore Wrapper4DOMLSInput(
+        DOMLSInput* const
+	, DOMLSResourceResolver*
+        , const bool 
         , MemoryManager* const);
-%ignore Wrapper4DOMInputSource(
-        DOMInputSource* const inputSource);
+%ignore Wrapper4DOMLSInput(
+        DOMLSInput* const
+	, DOMLSResourceResolver*);
 
 // These are odd cases. We want access to skip the method with the
 // memory manager argument, but we want access to the optional argument
 // *after* the memory manager. So we just ignore the method that doesn't 
 // include the memory manager - since our typemap defaults that argument
 // they are redundant
-%ignore createDOMLSParser(short const,const XMLCh* const);
+%ignore createLSParser(short const,const XMLCh* const);
 %ignore SAXParser(XMLValidator*   const);
 %ignore createXMLReader();
+%ignore createXMLReader(const XMLCh*);
 
 /*
  * ignore the constructors which set the MemoryManager
  */
 %ignore createDocument(const XMLCh *,const XMLCh *,DOMDocumentType *,MemoryManager *const);
 %ignore createDocument(MemoryManager *const);
-%ignore createDOMWriter(MemoryManager *const);
+%ignore createLSSerializer(MemoryManager *const);
 %ignore XMLFormatter(
         const   XMLCh* const           
         , const XMLCh* const           
@@ -151,7 +154,7 @@
 %ignore LocalFileFormatTarget(const XMLCh* const, MemoryManager* const);
 %ignore LocalFileFormatTarget(const char* const, 
             MemoryManager* const  manager = XMLPlatformUtils::fgMemoryManager);
-%ignore MemBufFormatTarget(int, MemoryManager* const);    
+%ignore MemBufFormatTarget(int, MemoryManager* const);
 %ignore XercesDOMParser(XMLValidator* const, MemoryManager* const);
 %ignore URLInputSource(const XMLURL&, MemoryManager *const);
 %ignore URLInputSource(const XMLCh* const, MemoryManager *const);

Modified: xerces/c/trunk/swig/interfaces/parsers.i
URL: http://svn.apache.org/viewcvs/xerces/c/trunk/swig/interfaces/parsers.i?rev=405504&r1=405503&r2=405504&view=diff
==============================================================================
--- xerces/c/trunk/swig/interfaces/parsers.i (original)
+++ xerces/c/trunk/swig/interfaces/parsers.i Tue May  9 12:02:33 2006
@@ -53,4 +53,3 @@
 
 %include "xercesc/sax2/SAX2XMLReader.hpp"
 %include "xercesc/sax2/XMLReaderFactory.hpp"
-

Modified: xerces/c/trunk/swig/interfaces/typemaps-general.i
URL: http://svn.apache.org/viewcvs/xerces/c/trunk/swig/interfaces/typemaps-general.i?rev=405504&r1=405503&r2=405504&view=diff
==============================================================================
--- xerces/c/trunk/swig/interfaces/typemaps-general.i (original)
+++ xerces/c/trunk/swig/interfaces/typemaps-general.i Tue May  9 12:02:33 2006
@@ -18,7 +18,7 @@
  * Scripting languages are not going to change the default memory manager
  *   so we always default this argument
  */
-// %typemap(default,numinputs=0) XERCES_CPP_NAMESPACE::MemoryManager* const  manager "$1 = XERCES_CPP_NAMESPACE::XMLPlatformUtils::fgMemoryManager;"
+%typemap(default) XERCES_CPP_NAMESPACE::MemoryManager* const  manager "$1 = XERCES_CPP_NAMESPACE::XMLPlatformUtils::fgMemoryManager;"
 
 /*
  *  MemBufInputSource::MemBufInputSource()
@@ -45,7 +45,7 @@
 %extend XERCES_CPP_NAMESPACE::SAX2XMLReader {
 %typemap(check) (const XMLCh* const name, void* value) {
   if (XMLString::compareIStringASCII($1, XMLUni::fgXercesSecurityManager) == 0) {
-    makeSAXNotSupportedException(SAXNotSupportedException("Setting security manageer not supported"));
+    makeSAXNotSupportedException(SAXNotSupportedException("Setting security manager not supported"));
     goto fail;
   }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org