Re: Upgrade guidance



Update: the port is essentially complete...

One issue is the ability to store a reference to a node for processing later/elsewhere in the code.  To clarify:

When processing a parsed document, there are instances when a node cannot be processed (the required objects created based on the xml node information) until later when some other needed objects have been instantiated.

In the ancient code we would just allocate a copy of the node on the heap and process it later as needed. 

I apologize for the nubile question! 

Would saving the Xpath from node->get_path(), and then later accessing via rootNode->find( Xpath ) be a reasonable solution?

Although i see that find() returns a NodeSet vector... which would presumably include the node referred to by Xpath and any children?

Thanks!

JP


On Tue, Jun 16, 2015 at 12:06 PM, Park, Joseph <joseph_park nps gov> wrote:
Ladies and Gents...

I am faced with the task of upgrading a hydrological simulation model [1] from an early libxml++ (libxml++-0.15.0) to a contemporary one (target libxml++-2.38.1).  The code is quite complex and XML parsing is replete.

It appears, as one would expect, that over the years libxml++ has fundamentally changed it's class structure, i.e. XMLNode in 0.15.0 is no longer defined.

So, I'm looking for guidance and suggestions on how to approach such an endeavor, in the hopes that someone has tread this path.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]