Hi, I am still waiting for an answer on this. Can
somebody please help! I noticed that the setValue or
setNodeValue functions in XalanSourceTreeAttr class
are written to just throw an exception and there is no
other functionality. In fact, this is the case with
all the 'set' functions in this class or even other
classes like XalanSourceTreeElement. Does this mean
that none of these functionalities are implemented in
the Xalan library and the user needs to rewrite these
functions to get the desired functionality?

Please help. Any help will be greatly appreciated.

Thank you.

- Pinaki


--- pm <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I have a question on Xalan C++. I am trying to
> perform
> very basic XML operations like
> getting/setting/adding/removing attributes and
> elements in a DOM tree. My code needs to use the
> XPath
> passed by the user to perform these operations. I
> found that the sample code available on the website
> is
> mostly for more advanced features like XSL
> stylesheet
> and transformation (except for the example
> SimpleXPathAPI). Is there any other sample code
> available that I can look at?
> 
> I could write the function for getting an attribute
> value using the XPathEvaluator::evaluate() function.
> But while trying to set an attribute value, I am
> getting an exception. My code is as follows.
> 
> XalanNode* const      theResultNode =
> theEvaluator.selectSingleNode(theDOMSupport,
> theContextNode, XalanDOMString(buf).c_str(),
> thePrefixResolver);
> const XalanDOMString  valueXDS(value);
> if (theResultNode)
>       ((XalanAttr *)&theResultNode)->setValue(valueXDS);
> 
> Here setValue is cauing the exception. theResultNode
> is supposed to point to the attribute node whose
> value
> is getting set. Can somebody help me with this? Am I
> using the right classes and APIs?
> 
> Many thanks.
> 
> Pinaki
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to