XMLHttpRequest responseXML "swallowing" "\" characters (from Windows file paths)
Subject : XMLHttpRequest responseXML "swallowing" "\" characters (from Windows file paths)
From: John Fox <email@hidden >
Date: Thu, 3 Nov 2005 13:44:22 -0800
Delivered-to: email@hidden
Delivered-to: email@hidden
Hello Dashboard Gurus:
I'm using XMLHttpRequest to fetch data that includes Windows style
UNC file paths which I then need to repost in a URL. The problem is
that the paths contain the backslash character which is being treated
as an escape, as far as I can see:
Here's the SOAP that is returned:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/
envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ;>
<soapenv:Body>
<ns1:GetDataResponse soapenv:encodingStyle="http://
schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://DefaultNamespace" ;>
<GetDataReturn xsi:type="xsd:string">NP-
APP2multivujimhallyAl8cklWqGbqdtAXh60dyw1017200515381746822627.m
ov</GetDataReturn>
</ns1:GetDataResponse>
</soapenv:Body>
</soapenv:Envelope>
The data I'm looking for in this case should be:
NP-APP2\multivu\jimhall\yAl8cklWqGbqdtAXh60dyw\10172005153817468
\22627.mov
If I look at the returned SOAP message using a packet sniffer, it
looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/
envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" ; xmlns:xsi="http://
www.w3.org/2001
/XMLSchema-instance">
<soapenv:Body>
<ns1:GetDataResponse soapenv:encodingStyle="http://
schemas.xmlsoap.org/soap/
encoding/" xmlns:ns1="http://DefaultNamespace" ;>
<GetDataReturn xsi:type="xsd:string">NP-
APP2«03»multivu«03»«03»«03»«04»jimh
all«04»5dP2lkP9iNwhry4oRN2Ogw«04»09292005182614500«04»22480_broll.mov</G
etData
Return>
</ns1:GetDataResponse>
</soapenv:Body>
</soapenv:Envelope>
Does anyone have any idea about this?
John
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.