You can read all data coming from the response's InputStream into a
String, or, say, byte array. Then parse this String (or byte array)
with the XML parser and if it fails to parse, dump the contents of the
String into a file. (See the docs for ByteArrayInputStream and
ByteArrayOutputStream for
Indeed so! Definitely more convincing.
But given the request made, you should be able to capture the XML
using wget or curl.
I'm just trying to offer you alternatives to getting there, hoping one
of my ideas might make things easier for you.
If it's a matter of not matching a spec, as opposed
My XML source is beta software on a server. I want something the
server-side software engineers can see easily in a logcat - I'll dump
the data to the log only when the XML parsing fails, of course, not
all the time.
On Dec 1, 1:12 pm, Frank Weiss fewe...@gmail.com wrote:
Seriously, can't you
I'm going to try the mark() and reset() methods on the Entity's
InputStream. With luck, I'll be able the read() the bytes into an
array and reset the stream back to the beginning.
On Dec 1, 1:17 pm, Bret Foreman bret.fore...@gmail.com wrote:
My XML source is beta software on a server. I want
It turns out that markSupported() returns false so I'll have to
override the class and implement mark/reset.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To
How about instead, logging the exact request that failed? Then, your
server engineers can add it to their test suites, and you can use curl
or wget to get the response, and add that response to your test suite.
What this lacks in tight coupling it more than makes up for by being a
test that gets
Bob,
The server side is enterprise stuff - code that has been around for at
least a decade. I have no idea how the server-side engineers are
generating their XML, nor do I want to know. But what I've observed is
that the XML tree in the data I receive sometimes does not match the
documentation.
7 matches
Mail list logo