AntiWPA Forum

Full Version: decode XML
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Staff of you who understand more about the subject, know how to decode. Xml files??Undecided


ip board is a forum skin Huh
(12-30-2011 06:00 AM)Croata Wrote: [ -> ]Staff of you who understand more about the subject, know how to decode. Xml files??Undecided


ip board is a forum skin Huh

U need by hands delete linebreaks (& # 13; ), make hash in 1 line and deBase64Wink
(12-30-2011 06:00 AM)Croata Wrote: [ -> ]Staff of you who understand more about the subject, know how to decode. Xml files??Undecided


ip board is a forum skin Huh

i've decoded the element "content" from the xml files for you. you can find the dumps here: http://www.sendspace.com/file/toicuw

you can easily do the job with php and simplexml.

dude, just to give you a quick example on how you can decode that, check this out:

PHP Code:
<?php

    
if( ! $xml simplexml_load_file("uniform.xml") )
    {
        echo 
"Unable to load XML file";
    }
    else
    {
        foreach( 
$xml->fileset->file as $element )
        {
         print 
$element->filename "\r\r";
     print 
base64_decode($element->content) . "\r\r\r";
        }

    }

?>

you can use it like: php decode.php > whatever.txt

the output will be something like:

Code:
pm_nonew.png  <-- notice the filename element from xml

‰PNG   <-- here starts the content element of the xml
.............................

... same applies to both xml files

you can simply use it like: php decoder.php > dump.txt

this doesn't generate another decoded xml, but decodes base64 from the content element of the xml file.

you can also adapt the script to dump the contents in separate external files or to generate another xml file with those "content" elements decoded Wink

hope it helps.

don't forget to rate me Wink
i really want to decode my thing as well but can't do it with the XML PHP can anyone decode it for me?
Reference URL's