0
votes
0answers
9 views

Deserializing callback of non-field element

I have the following XML structure: <key> <element> someValue </element> <other> someOtherValue </other> </key> And i use Simple to ...
0
votes
0answers
36 views

RESTful web services in java

I am trying to pass list of Long in my resource as post data and consume type is application/xml. I am also passing two path params. It is giving me exception "media type not supported". Please help ...
0
votes
2answers
32 views

Scroll all elements in an Activity in Android

I have an activity in Android with two main views: a header layout with some text boxes, and a view group which is an own implementation of a grid of unequal height elements. As you can see in the ...
-3
votes
2answers
55 views

Local Storage In Java [on hold]

I'm looking for the method how to local storage information in a Java Application when there is no connection with the Server,and synchronize it with the BD when the connection established!! My ...
0
votes
0answers
8 views

XML signature different on Domino server

We are trying to set up communications with a service provider that requires that we sign the XML we send. This is done on a Lotus Domino platform using Java 1.6. The problem is that the signature ...
-5
votes
1answer
61 views

Application has stopped working Issue

The idea is that you can horizontally scroll through the images, if you click on one it shows it enlarged above the button and if you press the button it would set the image as a wallpaper. But my ...
0
votes
1answer
15 views

JAXB xml tag in file starting with number, possible?

I have a very big xml with many nested tags for which I generated a java class. One of the tags starts with number <3DSecure></3DSecure> I had to manually set this tag only, in Java I ...
-7
votes
0answers
49 views

Read XML file in Java [on hold]

I have a below xml file. <class value="pendrive"> <property value="company"> <dt:string value="KingXXXX"></dt:string> </property> <property value="price"> ...
0
votes
0answers
16 views

How to replace & in xml if we have in two places of xml tags

I have xml xml like this below <ResiPhone>9702039191</ResiPhone> <Mobile>09702039191</Mobile> <OccupationType>S</OccupationType> <OfficeAddress1>GINGER ...
-2
votes
3answers
34 views

how to open html pages dynamically in same xml

I created <WebView> in web.java and 100 buttons in chapters.java My desire is, if button1 pressed in chapters.java, chapter1.html should be open in web.java. if button2 pressed, chapter2.html ...
-1
votes
2answers
60 views

android: display html pages in webview [duplicate]

I have 100 html files. I know how to initialize the <WebView /> for single xml page. But, If I used this method, then i need to create 100 xml pages. So, its waste of time. So, I created ...
0
votes
1answer
25 views

How to create a dynamic table of data in android?

I've looked around at tutorials for TableLayouts and other such things, but all of it seems to be programmed as a static number of rows with textview's. I'm wondering if it would be possible to ...
0
votes
1answer
9 views

Android XML Mixup and Minor Difficulties

<CheckBox android:id="@+id/checkBox2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignLeft="@+id/checkBox1" ...
-1
votes
1answer
23 views

SectionsPagerAdapter mSectionsPagerAdapter; says mSectionsPagerAdapter cannot be resolved to a varible [on hold]

It doesn't not give me any suggestions for inputs. Any help would be appreciated
0
votes
1answer
15 views

JDom on Android: error opening trace file: No such file or directory

I don't understand why I'm getting this error, I'm trying to write to a file, not read from it. At first I got an error because I didn't put a jar in the libs folder, now I am getting this error. ...
0
votes
1answer
18 views

Using JDom2 to write XML files on Android

I am trying to use JDom version 2.0.5 with my android sdk. When I try to run the app, it always crashes, where as, if I make a normal java application it works fine. I am trying to write an XML file ...
1
vote
1answer
18 views

Ant:build.xml; XML document structure must start and end within the same entity

I have the following directory structure +project +--profile +---src +---WebContent +---build I am trying to compile and copy using Ant, but when I execute the ...
0
votes
1answer
21 views

How do I fix this Error 500 when trying to connect to a web service?

I am trying to connect to a cXML Web Service using Visual Studio 2010 .NET 4, and when I try to Add a Service Reference to the project using the URL I get the following error (i have masked the url ...
0
votes
1answer
30 views

Error in xml layout:The following classes could not be found: - android.support.v4.view.Viewpager

My android.support.v4.jar is in my libs folder and in my android private libraries also. But I got a problem appearing over top of my my xml layout saying- "The following classes could not be found: ...
0
votes
2answers
26 views

Android horizontal scroll

I have created a horizontal scroll view using HorizontalScrollView, but it has android default style. So I want to create a horizontal scroll without using HorizontalScrollView. Is this possible, if ...
2
votes
4answers
31 views

android: display html pages when button clicked?

FULLY UPDATED: I have 100 html files. I know how to initialize the <WebView /> for single xml page. But, If I used this method, then i need to create 100 xml pages. So, its waste of time. So, ...
1
vote
2answers
39 views

android: create a new activity with xml page

I want to create a new activity. My default has two files MainActivity.xml with MainActivity.java. But, If i created a new activity only .java files are created in /src/ path no .xml files are created ...
0
votes
1answer
14 views

Horizontal View remove default style

I have a horizontal scroll view, it is working fine. But I want to remove the default style it shows when you go right or left This is my problem How can I remove the orange color that is showing ...
0
votes
1answer
37 views

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

I am using below method to parse an XML file - package com.kcs.xml; import java.io.File; import java.io.FileInputStream; import java.io.InputStream; import java.io.InputStreamReader; import ...
0
votes
0answers
17 views

Android TabWidget set id

I have this xml code for my application <?xml version="1.0" encoding="utf-8"?> <TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" ...
0
votes
1answer
26 views

Html Form automatically calls Servlet without submission

My Apache tomcat installation directory is C:\apache-tomcat-7.0.42 In webapps folder I have created index.html and WEB-INF folder. index.html <html> <form action="MyServlet" ...
0
votes
2answers
37 views

Jersey. How to generate json and xml output depending on url param

There is jersy service I have: @GET @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON }) public Response service(@QueryParam("format") String format) { if (format.equals("json")) ...
0
votes
1answer
39 views

SimpleXML: Element 'id' is already used

I'm sick and tired trying to parse one XML file. It's not mine, so I can't edit it. Look at it first (I've cut unnecessary parts) 01 <feed> 02 ...
1
vote
1answer
28 views

Serialization vs. Byte Code Translation

I'm a beginner with programming, and I was just wondering if there is a difference between the process of serialization and the process of converting to and from byte code (intermediate language). I ...
0
votes
3answers
51 views

Java: Mixed (datatype) Variable Arguments

So I have come a long way since my first question, kind of feel like I know what I'm doing. Anyway I have this method here that creates XML elements/values using JAXB. It is set up like: ...
0
votes
1answer
21 views

SimpleXML: Element 'link' is already used

Hello and sorry for my bad English. Look at the XML I'm trying to parse: <author> <name>Name</name> <y:link href="http://api-yaru.yandex.ru/person/20623655/" rel="self"/> ...
0
votes
0answers
20 views

Marshalling of java object to XML in Preprocessor phase of Mirth?

Mirth is receiving java object from ActiveMQ JMS Topic.I have set source connector inbound data type to Delimited Text in Mirth Channel and Connector Type is JMS Reader. Now in preprocessor phase i ...
0
votes
0answers
24 views

Java Object is converting into String in preprocessor of Mirth?

i passed the java object into the mirth in preprocessor phase , i want to marshal this java object to XML for that i have written custom java class for marshaling and i made this java class as a jar ...
0
votes
1answer
22 views

Java applet doesn't save/load internal xml files

I'm making some sort of calculator where you enter amount of items you want to buy and it returns price of these items. The app is loading prices from XML file stored inside jar file. There's also a ...
0
votes
1answer
16 views

JXPath getValue results include results from previous searches as well

I am using JXPathContext to search through the Java Object using XPath. I have the following code. The class department has an employees collection. public List<Employee> ...
0
votes
1answer
22 views

Java/XML: What's the best way to decode/decompress a stream of data on the fly?

In this case, I am SAX parsing an XML file that contains an element of Base64 encoded, zlib compressed data. I know how to decode and decompress the data. The issue is that I don't want to do it all ...
0
votes
1answer
25 views

Add view programatically in Android with a pre defined layout

I constantly find myself adding views programmatically and then one by one changing some of it's attributes. This isn't a big deal until I have to go and change something like it's height or width, ...
2
votes
3answers
30 views

How to unmarshall when you have xml namespace?

I am trying to unmarshall an xml using a namespace to create an object from it. I am getting exceptions that the element is not expected. Here is what I've got. @XmlRootElement(name="package") ...
0
votes
1answer
26 views

Saxon XSLT Transformation: How to close outputstream when failing during transformation

I want to do a XSLT transformation with multiple output files. There for I used "xsl:result-document". When the transformation fails, all output files should be deleted. But if the generation of a ...
0
votes
1answer
19 views

Android star another activity from action bar

so I'm working on this app of mine and I'm kinda stuck with the action bar item to respond to onclick. I think the xml is alright giving: android:onClick="move" With this in the main activity: ...
-3
votes
2answers
62 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 ...
3
votes
1answer
29 views

Android how to save simple data

I want to save a simple data (example for settings) in an android application. How can this be possible (I want to use something like cookies in javascript)?
1
vote
2answers
54 views

Define XML Elements with identical names

I'm facing a problem with xml using jaxb. I'd like to be able to generate such a xml file: <Animals> <Animal type="A"> <name>aaaa</name> <j>text1</j> ...
0
votes
2answers
60 views

How to use static resources in spring mvc?

How to use static resources in spring mvc? I just want to insert some images in jsp. In which place I must locate my resources? Last time I used to add mvc:recources in servlet-context, but it shows ...
-1
votes
5answers
47 views

android: image is not touching screen borders

i gave all margin properties in xml, but the image is not fitted the screen. It has small gap from four sides. Help me to make that image to touch all sides. EDITED XML CODE <RelativeLayout ...
1
vote
2answers
27 views

Parse XML to different data structure with JAXB

I'm working on a tool to query Eve-Central. Eve-Central queries are returned in XML format, as such: <evec_api version="2.0" method="marketstat_xml"> <marketstat> <type ...
0
votes
1answer
18 views

XML 2.0 RSS Feeds Processing Android

Have a look at the feed here. It is easy to process XML 1.0 / 1.1 where they only have normal characters in the <description> tag. However, the RSS feed mentioned above has HTML tags like ...
2
votes
4answers
41 views

Getting “Unfortunately, my_app has stopped.” because of NullPointerException at include in layout

So I'm learning android coding and I've come across a NullPointerException and I can't figure out why. I know that whatever is causing the app to stop is in line 26: LinearLayout billLL = ...
0
votes
1answer
21 views

Vertical linear layout doesn't show up, but horizontal does in java xml file

I've just started Java programming in school, and my first assignment is to recreate an app I was working on using an xml layout instead of programmatically creating the elements. I have two separate ...
-3
votes
1answer
44 views

How to reference TextViews inside embed LinearLayout? [on hold]

I have a LinearLayout layout resource file (xml) that has multiple LinearLayouts of different orientations embedded inside. Inside one of these embedded LinearLayouts I have some TextViews that I want ...

1 2 3 4 5 184
15 30 50 per page