You can create DOM object and use the DOM serializer, which I received from
Evert Haasdijk

Thanks,
Yakov



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 20, 2001 9:33 AM
To: [EMAIL PROTECTED]
Subject: Re: Related to storing DATA IN XMLfile if anyone worked in
SERVLETS & HTML



> So I get all the parameters from the form of the user and want to
>store them in an XML. How can I achieve this ?

"Store them in an XML" -- do you mean updating an existing XML file, or
writing a new one?

If you want to update an existing flat XML file, you have to read the file,
find the places you want to update, update, and write the file back out.
That can be done via old-fashioned text processing in some cases, or by
running the file through a parser, operating on the parsed form (typically
DOM or SAX), and writing back out via a serializer. The latter is generally
easier since it saves you from having to deal with some of the detail work
of unicode encodings and character quoting and so on.

If you want to generate a new XML file you have the same options -- text
processing, or generate the parsed form and hand that to a serializer.

Another alternative is to manipulate the data in non-XML form -- in a
database, for example -- and generate the XML syntax from that when you
need it. For example, some database systems (IBM's and Oracle's, and
probably others by now) have added extensions to facilitate both storing
data in XML syntax and converting between XML markup and raw data
structures. Of course you can do similar things with other data structures,
but you'd need to invent your own code for mapping them into and out of
XML.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
------
Attachments are virus free!

This message has been scanned for viruses at the originating end by
Nemx Anti-Virus for MS Exchange Server/IMC
        http://www.nemx.com/products/antivirus

    

DOMSerializer.cpp

DOMSerializer.hpp

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

Reply via email to