|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Question for updating existing XML file
Doesn't this involve rewriting the whole file? -- PITHY WORDS OF WISDOM There are always two solutions to the problem: yours and the boss's. ________________________________ From: Oleg Dulin [mailto:oleg@c...] Sent: Mon 7/26/2004 7:30 AM To: Chen, Andrew . Cc: 'xml-dev@l...' Subject: Re: Question for updating existing XML file Sure. I would use XSLT. Write a simple template that points to where you want to make the change and then insert the XML you want. Oleg Chen, Andrew . wrote: > Hi, > > First time posting, new to the list. > > How do you update your XML files? > Example: > (in a huge XML file...) > <Entry> > <name>Jon</name> > </Entry> > ... > > If I want to update the name to Joe, or add another name Jane. So the > node looks like this: > (in a huge XML file...) > <Entry> > <name>Joe</name> > <name>Jane</name> > </Entry> > ... > > Is there a way to do this kind of update without rewrite the whole > file? My file is about 50MB. > > Thanks. > -- > Andrew H. Chen > Westinghouse Electric Company, Nuclear Fuel > 4350 Northern Pike, Monroeville, PA, 15146 > Tel. +1 (412) 374-2316 > ----------------------------------------------------------------- The xml-dev list is sponsored by XML.org <http://www.xml.org>, an initiative of OASIS <http://www.oasis-open.org> The list archives are at http://lists.xml.org/archives/xml-dev/ To subscribe or unsubscribe from this list use the subscription manager: <http://www.oasis-open.org/mlmanage/index.php>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








