Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
decode XML
12-30-2011, 06:00 AM
Post: #1
decode XML
Staff of you who understand more about the subject, know how to decode. Xml files??Undecided


ip board is a forum skin Huh


Attached File(s)
.zip  Uniform.zip (Size: 1.41 MB / Downloads: 29)
Find all posts by this user
Quote this message in a reply
12-31-2011, 07:09 AM (This post was last modified: 12-31-2011 07:10 AM by sidxx55.)
Post: #2
RE: decode XML
(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
Find all posts by this user
Quote this message in a reply
04-21-2012, 01:45 PM
Post: #3
RE: decode XML
(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

Wise men don't need advice. Fools won't take it. ~~ Benjamin Franklin
Find all posts by this user
Quote this message in a reply
08-26-2012, 02:14 PM
Post: #4
RE: decode XML
i really want to decode my thing as well but can't do it with the XML PHP can anyone decode it for me?
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | Homepage | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication