You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by pe...@ca.ibm.com on 2001/02/07 17:22:52 UTC

Re: Specify DTD when creating DOM Document

Hi, there,

    The following is an exerpt from DOM_DocumentType.hpp

    /**
      * Default constructor for DOM_DocumentType.  The resulting object
does not
      * refer to an actual DocumentType node; it will compare == to 0, and
is similar
      * to a null object reference variable in Java.  It may subsequently
be
      * assigned to refer to the actual DocumentType node.
      * <p>
->      * A new DocumentType node for a document that does not already have
one
->      * can be created by DOM_Document::createDocumentType().
      *
      */


Regards,

Peiyong Zhang
____________________________________________
XML Parsers Development
IBM Toronto Laboratory email: peiyongz@ca.ibm.com
Phone: (416)448-4088; Fax: (416)448-4414; T/L: 778-4088



Nils.Borngraeber@t-online.de (Nils Borngraeber) on 02/08/2001 10:31:08 AM

Please respond to xerces-c-dev@xml.apache.org

To:   "Xerces-C-Dev" <xe...@xml.apache.org>
cc:
Subject:  Specify DTD when creating DOM Document


Hi,

 how can i specify a DTD for when i create a DOM-tree?

In CreateDOMDocument.cpp:

           DOM_Document doc = impl.createDocument(
                0,                    // root element namespace URI.
                "company",            // root element name
                DOM_DocumentType());  // document type object (DTD).

I haven't found a function yet.


 Nils Borngraeber


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