Sawye hi
No this is not the same question,  please look on the script I already 
implement your good answer in the script thx to you
My new question was how to create normal XML format


For example
The target is to create the follwoing

> example 1
>
> <LEVEL1>
> <LEVEL2>
>   <LEVEL3>
>   <UnitType Name="TEST" UponError="Stop" ExecutionOrder="1" />
>   <UnitType Name="TEST1" UponError="Stop" ExecutionOrder="1" />
>   <UnitType Name="TEST2" UponError="Stop" ExecutionOrder="1" />
>   </LEVEL3>
> </LEVEL2>
> </LEVEL1>



But I get wrong XML format :

> <LEVEL1><LEVEL2><LEVEL3><UnitType Name="TEST1&#10;" UponError="Stop"
> ExecutionOrder="1"/><UnitType Name="TEST2&#10;" UponError="Stop "
> ExecutionOrder="1"/><UnitType Name="TEST&#10;" UponError="Stop"
> ExecutionOrder="1"/></LEVEL3></LEVEL2></LEVEL1>

Uri





On Wed, Jul 14, 2010 at 3:36 PM, Gaal Yahas 
<[email protected]<mailto:[email protected]>> wrote:

XML documents are better off including the declaration. I don't know
of an API in libxml to suppress it, but if you care enough, write your
document to a string variable and strip it out with a regular
expression before writing to disk.

Uri, wasn't this question already answered, by me?
I gave pretty much the same answer too.



  ________________________________
“This e-mail message may contain confidential, commercial or privileged 
information that constitutes proprietary information of Comverse Technology or 
its subsidiaries. If you are not the intended recipient of this message, you 
are hereby notified that any review, use or distribution of this information is 
absolutely prohibited and we request that you delete all copies and contact us 
by e-mailing to: [email protected]. Thank You.”
_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to