"Gero Mei�ner" <[EMAIL PROTECTED]> writes:

> I tried the function actual_cast() but unfortunately had no success. Here is
> a fragment of my code:
> 
> :
> $node = $docOut->importNode($root->getAttributeNode('owner'), 0);
> $node = $node->actual_cast();
> print $node->getValue();
> :
> 
> 
> The function 'importNode' converts the attribute named 'owner' from DOM_Attr
> to DOM_Node. When using the function 'actual_cast' it doesn't convert $node
> back from DOM_Node to DOM_Attr. So I always get an error when trying to use
> the (attribute-)function 'getValue'. What I wanted to do is to directly
> assign the imported attribute-node to an element of the Document $docOut by
> using the function 'setAttributeNode'
> ($docOutElement->setAttributeNode($node)).

Ok. First off, this should work fine without actual_cast(). Second,
actual_cast() seems broken in this situation, I'll need to look into
this. 

I was able to play around in the debugger, and getValue() works just
fine for me... but I suspect that that something deeper is wrong here,
let me poke around.

jas.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to