Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > trying to build an xpath query...

Thread Tools

trying to build an xpath query...

Michael Dahlquist
Posts: n/a
Hi -

I've got a nasty XML file that reads something like this:


Each <b> element represents a new section. I need to process one
section at a time - each <b> element is a heading, and everything
between <b> elements becomes a separate document. Each section may
include both descendants and siblings of the <b> element.

The only way I've been able to make this work is to edit the source
XML so that there's a wrapper around each section, starting after each
<b> element, ending just before the next <b> element.

I want to say, "for every <b> element, apply a transformation to
everything between this <b> element and the next <b> element."

Is this possible? Should I send more information? Am I barking up the
wrong tree?

Let me know, thanks -

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Memory leak" in javax.xml.xpath.XPath Marvin_123456 Java 4 07-29-2005 03:49 PM
SWsoft Acronis Disk Director Suite 9.0 Build 508, Acronis OS Selector 8.0 Build 917, Acronis Partition Expert 2003 Build 292, Acronis Power Utilities 2004 Build 502, F-SECURE.ANTI vIRUS.PROXY v1.10.17.WINALL, F-SECURE.ANTI vIRUS v5.50.10260 for CITRI vvcd Computer Support 0 09-25-2004 01:38 AM
Re: trying to build an xpath query... Michael Dahlquist XML 0 07-09-2003 08:07 PM
Problem selecting a node with XPATH if attribute value contains backslashes - how to force XPATH string to be treated as literal? Alastair Cameron XML 1 07-08-2003 07:24 PM
Re: trying to build an xpath query... Michael Dahlquist XML 0 07-07-2003 02:37 PM