OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: [xml-dev] Question for updating existing XML file

[ Lists Home | Date Index | Thread Index ]

Title: Question for updating existing XML file

Hi Andrew,

it can be easily done with XML documents stored in an XML database system. For example, try Sedna (http://www.modis.ispras.ru/Development/sedna.htm). Using Sedna you can do this by loading the XML document into database and then running statements in an update language. For example, to add another name Jane you should run the following statement:


insert <name>Jane</warning>

following //Entry/name[.="Jon"]

In general, the Sedna update language also allows you to manipulate XML data without rewriting the whole document.

Maxim Grinev

The Sedna team

-----Original Message-----
From: Chen, Andrew . [mailto:ChenA@westinghouse.com]
Sent: Monday, July 26, 2004 6:14 PM
To: 'xml-dev@lists.xml.org'
Subject: [xml-dev] Question for updating existing XML file


First time posting, new to the list.

How do you update your XML files? 
  (in a huge XML file...)

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...)

Is there a way to do this kind of update without rewrite the whole file?  My file is about 50MB.

Andrew H. Chen
Westinghouse Electric Company, Nuclear Fuel
4350 Northern Pike, Monroeville, PA, 15146
Tel. +1 (412) 374-2316


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS