in reply to Re: Re: Request for advice. Presenting XML.
in thread Request for advice. Presenting XML.
Mixed content is elements with both text and markup children:
<p>This is <b>mixed</b> content/<p>XML::Simple does not keep the order of the children, in this case the 2 contents ('This is ' and ' content') and the b.
You can try with this:
perl -MXML::Simple -e'$xml=XMLin( "<p>This is <b>mixed</b> content</p>"); print XMLout( $xml);'The output is:
<opt b="mixed"> <content>This is </content> <content> content</content> </opt>
Even if you use the noattr option you will still get the 2 contents and the b element in the wrong order.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Request for advice. Presenting XML.
by BrowserUk (Patriarch) on Jul 06, 2002 at 17:39 UTC |