Hi Jatayu,

Jatayu <[EMAIL PROTECTED]> writes:

> Does anyone know if it's possible to use XPATH to locate a node in the DOM,
> then do *modification* on that returned node, e.g: add new children to that
> node?

Yes, that a pretty reasonable thing to do.


> function on DOMXPathResult returns a *const* node.

This has been fixed in SVN. The second beta (coming out in a few
weeks) will have this change.

> Is it safe to cast away the const and add new children/change value
> of the node?

Yes, that's what you can do in the meantime.

Boris

-- 
Boris Kolpackov, Code Synthesis Tools   http://codesynthesis.com/~boris/blog
Open source XML data binding for C++:   http://codesynthesis.com/products/xsd
Mobile/embedded validating XML parsing: http://codesynthesis.com/products/xsde

Reply via email to