Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4071790
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T16:48:07+00:00 2026-05-20T16:48:07+00:00

I am currently developing an android program. After some searching i can’t seem to

  • 0

I am currently developing an android program. After some searching i can’t seem to find out a solution to fetch or request using XML within my android program.

I’m still at the early stages of the program. I can show the xml code i will be using. It’s basically requesting data using a username and password. I want to use this data so that the user can for example in a text/input box use the MonitoringRef identifier and receive the data through the XML request and have it presented within the app.

A request would consist of:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Siri version="1.0" xmlns="http://www.siri.org.uk/">
<ServiceRequest>
<RequestTimestamp>2007-01-11T10:38:12Z</RequestTimestamp>
<RequestorRef>CLIENT_APP_ID</RequestorRef>
<StopMonitoringRequest version="1.0">
<RequestTimestamp>2007-01-11T10:38:12Z</RequestTimestamp>
<MessageIdentifier>67890</MessageIdentifier>
<MonitoringRef>260057046</MonitoringRef>
</StopMonitoringRequest>
</ServiceRequest>
</Siri>

A response would consist of:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
10 - 11
Kizoom Traveline API at 03/09/2010
<Siri version="1.0" xmlns="http://www.siri.org.uk/">
<ServiceDelivery>
<ResponseTimestamp>2007-05-22T14:39:04+01:00</ResponseTimestamp>
<StopMonitoringDelivery version="1.0">
<ResponseTimestamp>2007-05-
22T14:39:04+01:00</ResponseTimestamp>
<RequestMessageRef>12345</RequestMessageRef>
<MonitoredStopVisit>
<RecordedAtTime>2007-05-22T14:39:03+01:00</RecordedAtTime>
<MonitoringRef>leiadadg</MonitoringRef>
<MonitoredVehicleJourney>
<FramedVehicleJourneyRef>
<DataFrameRef>-</DataFrameRef>
<DatedVehicleJourneyRef>-</DatedVehicleJourneyRef>
</FramedVehicleJourneyRef>
<VehicleMode>bus</VehicleMode>
<PublishedLineName>22</PublishedLineName>
<DirectionName>Norwich: Rail Station
Forecourt</DirectionName>
<MonitoredCall>
<AimedDepartureTime>2007-05-
22T14:53:00+01:00</AimedDepartureTime>
<ExpectedDepartureTime>2007-05-
22T14:55:00+01:00</ExpectedDepartureTime>
</MonitoredCall>
</MonitoredVehicleJourney>
</MonitoredStopVisit>
</StopMonitoringDelivery>
<StopMonitoringDelivery version="1.0">
<ResponseTimestamp>2007-05-
22T14:39:04+01:00</ResponseTimestamp>
<RequestMessageRef>67890</RequestMessageRef>
<MonitoredStopVisit>
<RecordedAtTime>2007-05-22T14:39:03+01:00</RecordedAtTime>
<MonitoringRef>260057046</MonitoringRef>
<MonitoredVehicleJourney>
<FramedVehicleJourneyRef>
<DataFrameRef>-</DataFrameRef>
<DatedVehicleJourneyRef>-</DatedVehicleJourneyRef>
</FramedVehicleJourneyRef>
<VehicleMode>bus</VehicleMode>
<PublishedLineName>3</PublishedLineName>
<DirectionName>Norwich: Ber Street John
Lewis</DirectionName>
<MonitoredCall>
<AimedDepartureTime>2007-05-
22T14:53:00+01:00</AimedDepartureTime>
<ExpectedDepartureTime>2007-05-
22T14:57:00+01:00</ExpectedDepartureTime>
</MonitoredCall>
</MonitoredVehicleJourney>
</MonitoredStopVisit>
<MonitoredStopVisit>
<RecordedAtTime>2007-05-22T14:39:03+01:00</RecordedAtTime>
<MonitoringRef>260057046</MonitoringRef>
<MonitoredVehicleJourney>
<FramedVehicleJourneyRef>
<DataFrameRef>-</DataFrameRef>
<DatedVehicleJourneyRef>-</DatedVehicleJourneyRef>
</FramedVehicleJourneyRef>
<VehicleMode>bus</VehicleMode>
<PublishedLineName>18</PublishedLineName>
<DirectionName>Old Catton: White Woman Lane/Proctor
Rd</DirectionName>
<MonitoredCall>
<AimedDepartureTime>2007-05-
22T14:57:00+01:00</AimedDepartureTime>
</MonitoredCall>
</MonitoredVehicleJourney>
</MonitoredStopVisit>
</StopMonitoringDelivery>
</ServiceDelivery>
</Siri>

Element in XML:

  • StopMonitoringDelivery –present for
    each StopMonitoringRequest in the
    request
  • RequestMessageRef – corresponds to
    MessageIdentifier in the request
  • MonitoringRef – indicates which bus
    stop this StopMonitoringDelivery
    relates to
  • MonitoredStopVisit – represents a
    single bus departure
  • PublishedLineName –service name
  • DirectionName – destination
  • AimedDepartureTime –scheduled
    departure time
  • ExpectedDepartureTime –estimated
    departure time

I’m just wondering if anyone can provide me to resources or a solution to provide this within the app.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T16:48:07+00:00Added an answer on May 20, 2026 at 4:48 pm

    You can interact with remote service via HTTP protocol using DefaultHttpClient and HttpPost / HttpGet classes.

    To parse an XML document from string response you can use DocumentBuilder.parse method
    It will provide to you an implementation of W3C Document Object Model to work with.

    Also, you’ll need to use some serialization facility to prepare a string representation of you XML document (to send as a response or else). The solution is depends on minimal SDK version of your application. With API level 8 you can use LSSerializer to do so.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently developing my program using sample BluetoothChat program on android device. This
I am currently developing for android and using some face recognition services. The service
I'm currently developing some Android Apps in a team and we've used 2 different
I am currently developing an Android application which has a web backend. I can
I'm currently developing an Android game using the SDK GLES10 and I'm experiencing some
I'm currently developing a camera application for Android on which some problems have occurred.
I'm currently developing an Android application which needs to receive data from a bluetooth
I'm currently developing an Android application that fetches images using http requests. It would
I'm currently developing an android application that uses sockets to connect to a local
I am currently developing an Android-App in Eclipse and trying to use a Library

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.