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

Re: Using XPath for node assignment

Subject: Re: Using XPath for node assignment
From: Johannes Döbler <jd@xxxxxxxxxxxxxx>
Date: Sat, 07 Apr 2001 00:17:11 +0200
xpath change node value
Hello Andrew,

using a XPath expression you can only define a set of nodes but not change the nodes directly. But if you only want to change node values (and not the tree structure) you can use XPath to select a set of nodes (represented by a data structure of the XPath implementation) and then let your program loop over the nodes in the set and assign a new value to them. Could be a very elegant solution compared to a direct manipulation of a DOM tree.

Johannes


Hello all,
I'm working on an application that will require in-memory modification of a DOM tree. This is a tedious task using only raw DOM manipulation.
Unfortunately, the existing XML<->Object frameworks (DXML, JDOM, etc.) are not suitable for my purposes.


I thought it might be somewhat interesting to turn XPath inside out and use it to assign values to nodes rather than extract node values. So, I'm wondering if this functionality exists anywhere or if my thinking is in some way flawed.

Andrew


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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