[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Question for Xpath usage in setter, not query or transformation

  • To: "'xml-dev@l...'" <xml-dev@l...>
  • Subject: Question for Xpath usage in setter, not query or transformation
  • From: "Chen, Andrew ." <ChenA@w...>
  • Date: Wed, 28 Jul 2004 11:48:00 -0400

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

Hi,

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?

Example:

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

Will create:

<people>
   <entry>
     <name>Joe</name>
  </entry>
   <entry>
     <name>Jane</name>
  </entry>
<people>


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.

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


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.