Hi Boris,

Thank you again. This is very helpful.

= Jatayu


On Wed, Jun 25, 2008 at 1:06 PM, Boris Kolpackov <[EMAIL PROTECTED]>
wrote:

> 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<http://codesynthesis.com/%7Eboris/blog>
> Open source XML data binding for C++:
> http://codesynthesis.com/products/xsd
> Mobile/embedded 
> <http://codesynthesis.com/products/xsdMobile/embedded>validating XML parsing:
> http://codesynthesis.com/products/xsde
>

Reply via email to