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 8239887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T20:17:59+00:00 2026-06-07T20:17:59+00:00

i can parse an xml file when it is added to the resource using

  • 0

i can parse an xml file when it is added to the resource using

InputStream in = getClass().getResourceAsStream("/data.xml"); 
KXmlParser parser = new KXmlParser();
parser.setInput(new InputStreamReader(in));

But i need to know how to read the xml file using kXML when it is kept outside the jar like (phone/card) memory, also how to edit that using kXML??

  • 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-06-07T20:18:01+00:00Added an answer on June 7, 2026 at 8:18 pm

    If your target devices support SAX from JSR 172, you should go with this parser instead of kXML. It will reduce your app’s final jar size (no libs imported). There is a good sample at http://www.developer.nokia.com/Community/Wiki/JSR_172:_XML_Parsing_Example It actually unmarshalls the XML into Java objects. For your case, instead of initiating InputStream in = getClass().getResourceAsStream("/JSR172Demo.xml"); you should use FileConnection API.

    Then you change the objects attributes as needed.

    To write your content back to XML you can override toString method making it create the XML String you need.

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

Sidebar

Related Questions

I can parse an XML file using NSXMLParser . I can also get the
Possible Duplicate: Parsing XML in Cocoa iPhone - Can we parse .plist(xml) file using
xml.etree.ElementTree.parse is choking on my xhtml file. I saw somewhere that lxml can handle
Can I count on string arrays within the strings.xml resource file to be parsed/deserialized
Documentation for data.xml/parse says The data is returned as defrecords and can be manipulated
i'm trying to parse this xml file but i can't find a way to
I have made one application which can parse the given xml file independent of
Currently, I am trying to parse an online XML file and insert the data
Does anybody know a Perl library that can parse XML documents and enables me
Is there any tool that can parse/conver xml files to this format? I have

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.