[Xml-compile] Mixed content question

Petar Shangov pshangov at yahoo.com
Fri Feb 27 15:10:13 GMT 2009


Of course, that did it.

Thanks!

Petar



----- Original Message ----
> From: Mark Overmeer <mark at overmeer.net>
> To: Petar Shangov <pshangov at yahoo.com>
> Cc: xml-compile at lists.scsys.co.uk
> Sent: Friday, 27 February, 2009 16:53:29
> Subject: Re: [Xml-compile] Mixed content question
> 
> * Petar Shangov (pshangov at yahoo.com) [090227 14:46]:
> Some Text'
> $xml_hash->{parent}{mixed_child}{_} = XML::LibXML::Text->new("Some Text"), but 
> this produces 'Some Text' instead, which is not what I need. 
> > 
> 
> When you create your own XML::LibXML nodes, you have no checks.  In this
> case, you produce the wrong node:
> 
>    # untested:
>    my $mixed = $doc->createElement('mixed_child');
>    $mixed->appendText('Some text');
>    $xml_hash->{parent}{mixed_child}{_} = $mixed;
> 
> -- 
> Regards,
> 
>                MarkOv
> 
> ------------------------------------------------------------------------
>        Mark Overmeer MSc                                MARKOV Solutions
>       Mark at Overmeer.net                          solutions at overmeer.net
> http://Mark.Overmeer.net                  http://solutions.overmeer.net




More information about the Xml-compile mailing list