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


Help: OASIS Mailing Lists Help | MarkMail Help



   Question for Xpath usage in setter, not query or transformation

[ Lists Home | Date Index | Thread Index ]

Title: Question for Xpath usage in setter, not query or transformation


Second posting, new to the list.

Thanks everyone for light shed on the updating XML file problem.  I think we will try not to write huge XML file, and separate them in reasonably small dataset files, and include them in the main file.

Here is another question we have:
Is it possible to set data in a DOM tree through a simple Xpath like syntax?


setData (file_id, "/people/entry/name", "Joe")
setData (file_id, "/people/entry[2]/name", "Jane")

Will create:


I understand that the XERCES API provides tree traverse functionality, but that is very cumbersome.  Are there similar implementation

We are using C++ implementation of Xerces and XALAN, and the final code interface is in C, so there is little capability to handle Java-like objects.

Many thanks in advance for suggestions.

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