Hello,
i had a query, i am having a DOM tree, which i am adding new nodes
dynamically, i also use a treewalker with, i wanted to know, can we access
the new nodes added using treewalker which we have instanitiated before
adding these nodes.

something like this.

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

    DOM_Node rootElem = doc.getDocumentElement();
        
    DOM_Node  prodElem = doc.createElement("product");
    rootElem.appendChild(prodElem);

        unsigned long    whatToShow = DOM_NodeFilter::SHOW_ALL;
        MyFilter* filter = new MyFilter(0);
        tw = doc1.createTreeWalker(doc, whatToShow,  filter, true);

    DOM_Node    prodDataVal = doc.createTextNode("Xerces-C");
    prodElem.appendChild(prodDataVal);

    DOM_Element  catElem = doc.createElement("category");
    rootElem.appendChild(catElem);
    catElem.setAttribute("idea", "great");

here can i access prodElem and catElem

please do clarify, waiting for ur replys
VInod

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

Reply via email to