0
votes
1answer
27 views

Error in parsing XML file with encoding UTF-8 and UTF-16

I am using below method to parse an XML file - public Document parseUTF8XML(File file) { String UTF_ENCODING="UTF-8"; DocumentBuilderFactory docBuilderFactory = ...
0
votes
1answer
47 views

Why is for loop not working for platform 4.2 (API 17)?

I have the following for loop code that will not work on 4.2\API17. the code calls a Data Model class and iterates. The Logcat shows that is happening. I am trying to get a Plist(xml) parser to work. ...
1
vote
1answer
23 views

Commons configuration library to add elements

I am using the apache commons configuration library to read a configuration xml and it works nicely. However, I am not able to modify the value of the elements or add new ones. To read the xml I use ...
-3
votes
2answers
60 views

parsing String to an arrayList element

I have this string coming from my dataBase: <user> <name>John</name> <surname>Shean</surname> <birthdate>1/1/1111</birthdate> <phone ...
0
votes
1answer
19 views

How to get tagname of a TEXT_NODE in java's org.w3c.dom.Node

In the documentation for this interface it states that textnodes all return "#text" for their names instead of the actual tag name. But for what i'm doing, the tag name is necessary. // I'm using ...
-1
votes
0answers
31 views

JAXB Unmarshal/Marshal

I have used XML Parsing in Java to parse through nodes and get the desired ones. But now, I want to use JAXB Marshalling and Unmarshalling to do so. I have tried to go through various examples but so ...
0
votes
0answers
45 views

Why does getElementsByTag throw NullPointerException?

I'm trying to parse xml data from this URL:http://cloud.tfl.gov.uk/TrackerNet/LineStatus but am getting a NullPointerException on the line that read: NodeList nl = doc.getElementsByTagName(KEY_ITEM); ...
-6
votes
1answer
35 views

Reading xml data from a text or csv file [on hold]

I want to read a file(txt or csv format) containing more than one xml data and parse each xml data.I already did the coding for parsing.
0
votes
0answers
29 views

java.net.MalformedURLException: no protocol exception while parsing xml

I am executing below code: DocumentBuilder docBuilder = docFactory.newDocumentBuilder(); doc = docBuilder.parse(sourcepath); node = ...
0
votes
2answers
47 views

Parsing XML file using DOM4J

I'm having problems parsing XML. I have the following method: public void componentsInfoToSimulation(String houseDivision, String equipment) { Element root = doc.getRootElement(); ...
0
votes
2answers
44 views

Exception during parsing XML with XMLPullParser

I need your help to parse XML announces. Let's see the XML below : <?xml version="1.0" encoding="UTF-8"?> <FAVORIS> <LOGGED>1</LOGGED> <NOTICES NUM_PAGE="2"> ...
5
votes
1answer
56 views

How can convert local xml file to org.ksoap2.serialization.SoapObject?

I am developing android web application which needs to connect web - service for response. I am using kSOAP for web service invocation process. [kSOAP is a SOAP web service client library for ...
0
votes
1answer
30 views

Ignoring DTD while parsing xml in java [duplicate]

I am processing below xml: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE CASE SYSTEM "C:\Users\user123\Desktop\demo.dtd"> <INFO> <NAME>John Smith</NAME> ...
-1
votes
0answers
69 views

Follow relative XPath in XML document [closed]

I need to load all contents of XML file in a Scala program (example XML file is below). I got as far as this code: val xmlFile = scala.xml.XML.loadFile(filename) val references=xmlFile \\ "data" \\ ...
1
vote
1answer
58 views

How to add an object to an array of another object java

I'm developing an Android app. My apps has a button and when I press this button I will parse an XML file, put the information of this file in some object and present this object in a expandable list. ...

1 2 3 4 5 72
15 30 50 per page