Re: XML generation based on Schema
yeoh meilin <[email protected]> Sun, 8 Dec 2002 05:20:24 +0800
| Newsgroups | gmane.comp.java.sun.xml.general |
|---|---|
| Message-ID | <[email protected]> |
Can anyone show me how to use DocumentFragment. I'm having some
difficulties.
DocumentTraversal traversable = (DocumentTraversal) scDoc;
TreeWalker walker = traversable.createTreeWalker(scDoc.getDocumentElement(),
NodeFilter.SHOW_ELEMENT, null,true);
Node s = walker.getCurrentNode();
subTree = scDoc.createDocumentFragment();
while (s.hasChildNode) {
subTree.appendChild(s);
s= walker.nextNode();
}
i can't navigate through the DocumentFragment(), in order to see what is
inside the DocumentFragment.
What will happen to my initial "Document" after i append it to my document
fragment??
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus
-----------------------------------------------------
xml-interest: A list for discussing XML technologies in the Java Platform.
To post, mailto:[email protected]
Archives at: http://archives.java.sun.com/xml-interest.html
To unsubscribe, mailto:[email protected] the following message;
signoff xml-interest.