Boost logo

Boost :

Subject: Re: [boost] xml?
From: Stefan Seefeld (seefeld_at_[hidden])
Date: 2010-04-08 13:58:07


On 04/08/2010 01:50 PM, Maarten L. Hekkelman wrote:
> Op 08-04-10 19:23, Phil Endecott schreef:
>> So could your XPath implementation be decoupled? What interface does
>> it use to traverse the XML tree? Could it be used on top of a
>> different XML tree implementation, such as a lazy one that stores the
>> text of the XML document, if it provided a similar interface?
> I think most of it should work. However, the entire XPath
> specification is build upon the idea that everything is a node and a
> node does not have to be an element. That's why I changed my object
> hierarchy.

For the boost.xml library I'm working on I plan to use something akin to
boost.variant as the return type of an xpath query. I don't think that
the XPath specification should dictate a type hierarchy on a C++
implementation.

FWIW,
         Stefan

-- 
       ...ich hab' noch einen Koffer in Berlin...

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk