Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: decoding base64 data on client/browser? [Thread Next] Re: decoding base64 data on client/browser?To: NULL Date: 3/3/2006 4:16:00 PM "Brandon" <Brandon@d...> wrote in message news:D14BB88D-FB0C-420A-8B0E-46FF7F13B722@m...... > Joe, > > First, THANK YOU for replying. Yes, my xml includes the > dt:dt="bin.base64". > > Here is one of my XML response files: > <?xml version="1.0"?> > <get_documents_response xmlns:dt="urn:schemas-microsoft-com:datatypes"> > <document> > <id>239</id> > <success>1</success> > <filename>file1infolder1.txt</filename> > <filedata > dt:dt="bin.base64">aSdtIGEgZmlsZQ0KDQppJ20gYW4gZWRpdGVkIGZpbGUu</filedata> > </document> > </get_documents_response> > > Is it not possible to do this decoding on the client side maybe (I REALLY > hope that isn't the problem)? Your routines, Joe... I saw them (or ones > very > similar) when I was researching this problem, and they were one of my > guides > for getting at least to where I am. > > Thanks again, Joe and all. > > Brandon > > Instead of loading the responseText load the responseXML, or just use it directly: var root = getdocs_xmldoc.load(getdocs_xmlhttp.responseXML).documentElement; OR var root = getdocs_xmlhttp.responseXML.documentElement; If for some reason responseXML is not being populated then either the server maybe sending back the wrong content type header. -- Joe Fawcett - XML MVP https://mvp.support.microsoft.com/profile=8AA9D5F5-E1C2-44C7-BCE8-8741D22D17A5 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
