I got it...  I used the insertBefore method of DOM_Node (of the document)
and inserted the PI before the documentNode that I got from
DOM_Document::getDocumentElement()


Thanks for your help...

Kevin


   -----Original Message-----
   From:   "McFall, Kevin" <[EMAIL PROTECTED]>@SUNGARD
   Sent:   Monday, May 06, 2002 2:48 PM
   To:     "'\"Joseph Kesselman/CAM/Lotus\" <[EMAIL PROTECTED]>
             @SUNGARD'"
             
<[EMAIL PROTECTED]>

             SUNGARD; "[EMAIL PROTECTED]@SUNGARD"
             <[EMAIL PROTECTED]>@SUNGARD
   Subject:  RE: Issue with adding PI to the DOM Tree in the domprint.cpp
             exam    ple.

   I'm using impl.createDocument() to create my document and I'm specifying
   the document element here (which appears to automatically add it to the
   document).  When I then add it to the document with appendChild(), I get
   the PI at the end of the document.<!DOCTYPE Family SYSTEM "family.dtd">
   <Family><Mom>insertMomsName</Mom><Dad>insertDadsName</Dad><Children><!
   --List my children here.--><Son age="4">insertSonsName</Son><Son age
   ="2">insertSonsName</Son><Son age="6">
   <![CDATA[Montana&Dog]]></Son></Children></Family><?xml-stylesheet type
   ="text/xsl/" href="family.xsl"?>I tried leaving the document element as
   NULL and then appending the document element after the PI, is that what
   you recommend?Thanks, Kevin
     -----Original Message----- From:   "Joseph Kesselman/CAM/Lotus"
     <[EMAIL PROTECTED]>@SUNGARD Sent:   Monday, May 06, 2002
     1:34 PM To:     [EMAIL PROTECTED] Subject:        Re: Issue
     with adding PI to the DOM Tree in the domprint.cpp example.

     Add the PI as a child of the Document node, not a child of the root
     element.
     ---------------------------------------------------------------------
     To unsubscribe, e-mail: [EMAIL PROTECTED] For
     additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to