You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Ragunath Marudhachalam <rm...@circuitvision.com> on 2001/06/28 19:10:37 UTC

RE: basic question about xml(another question related to this)

Hi All,

	I have a question in this. After creating  a document like that and if i
want to send it as a stream, how can i do that. In the earlier version i
used XmlDocument class for creating a document and to send the document as
stream i used XmlDocumentObject.write(outputstream)... Can anyone help me
with the work around for this in the newer version??

Thanks

Ragu


-----Original Message-----
From: Jessica Perry Hekman [mailto:jphekman@arborius.net]
Sent: Thursday, June 28, 2001 11:57 AM
To: xerces-j-user@xml.apache.org
Subject: RE: basic question about xml


On Thu, 28 Jun 2001, Delahaye, Martial (CAP, CMF, COFRAMI) wrote:

> thanks but actually I don't think that this is exactly what I am looking
> for. What I really would like to do is to instantiate a XmlDocument just
by
> providing a xml file. the example DOMGenerate.java creates a document by
> providing tag names and values. I just want to create it by providing the
> name of an existing xml file. but maybe that's just not possible.

I think what you want to do, if I understand you right, is to

* create a DOMParser

* ask your DOMParser to parse a file (the parse() method accepts a String
filename)

* get the generated Document from the DOMParser object

That Document object is, I believe, what you're looking for. The Xerces
documentation should help you do all of the above.

j



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


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