File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes empty document Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "empty document" Watch "empty document" New topic

empty document

slagy maggie
Ranch Hand

Joined: Feb 20, 2001
Posts: 35
How do i create an empty document using JAXP,ie i want to create my own tree structure by using create element. I also later on wanna validate this document.
Ajith Kallambella

Joined: Mar 17, 2000
Posts: 5782
<code> Document.createDocumentFragment()</code> should do the job, though I haven't done it myself
Ajith Kallambella M.
Sun Certified Programmer for the Java�2 Platform.
IBM Certified Developer - XML and Related Technologies, V1.
[This message has been edited by Ajith Kallambella (edited February 26, 2001).]

Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
I agree. Here's the link:
subject: empty document
It's not a secret anymore!