Help for this page

Select Code to Download


  1. or download this
    <?xml version="1.0" encoding="UTF-8"?>
    <foo>
    ...
        </property>
    </definition>
    </foo>
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
        $property->set_text( $htmlEncoded );        
    #    print "\n\n\n" . $property->text ."\n\n\n"; 
    }
    
  3. or download this
    perl -CS -pe 's/([^[:ascii:]])/sprintf("&#%d",ord($1))/eg' < orig.xml 
    +> encoded.xml