0
votes
1answer
14 views

Action bar transparency

I'm having trouble with android app. I try to make my action bar transparent (like google maps or google play music) but instead of becoming transparent it becomes white. Here is my custom theme: ...
0
votes
1answer
10 views

Representing multiple element names in JAXB

I have the below XML which represents a call event and needs to be unmarshalled to a Java object. I'm using JAXB and able to handle most of it except the block which represents a collection of values ...
0
votes
0answers
10 views

Customized filter is not working with spring mvc framework

I want to write a filter to distinguish wether the session is timeout, but I face a problem that it can not execute my customized filter. When I use <url-pattern>/home</url-pattern> in ...
0
votes
0answers
7 views

Validate XML entities in dropwizard

I have dropwizard 0.7.1 set up and the @valid annotation correctly works when using json and I get 422 errors in the HTTP responses. If I change the resource and add jaxb bindings to use XML, the ...
0
votes
1answer
22 views

How to create element and set custom attribute to map a simple type class property

@XmlRootElement(name="flowPane") public class Image implements Serializable { public String name; public String description; } Bound to <flowPane> <label text="name"/> ...
1
vote
2answers
13 views

JABX xml written on a single line. How do i format [duplicate]

for those who tried the JAXB library, is there a way to create the file properly formatted? The output is a 1 line file, and it gives me big problems. >,< //xml creation JAXBContext ctx = ...
1
vote
1answer
12 views

How to customise the xml namespace with JAXB unmarshalling?

I have met some trouble with JAXB unmarshalling xml file to Request object and sent it to servis. Instead of correct response it returns error - Unknown user. I'm using next schema: xml file ...
0
votes
1answer
18 views

Return xml node containing queried word in xml using edittext

Is there anyway to parse and search an XML located in assets folder using edittext and then return the node containing the searched/queried word? E.g. My XML file would look like this: book.xml ...
0
votes
0answers
20 views

How to search and replacement element in the XML via xPath in Java

I need advice on how XML via xPath to find a specific element and replace it with another element. In the XML I have 3 elements <w:sdt> and each element has children <w:r> which is another ...
2
votes
1answer
12 views

XmlSchemaType “date” - without time zone?

I am using java xml annotations like this: @XmlRootElement @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "OrganisationUnit", propOrder = { "companyId", "validFrom", ...
0
votes
1answer
19 views

Append Marshalled Object Into XML File Using JAXB

I am in a situation in my project to marshal a pojo object and writing first time the output into an XMLfile and then appending the same marshaled object with different values but same node and child ...
0
votes
1answer
16 views

How to apply the app icon to the Theme.DeviceDefault.Light.DarkActionBar?

<?xml version="1.0" encoding="utf-8"?> <resources> <style name="AppTheme" parent="android:Theme.DeviceDefault.Light.DarkActionBar"> </style> </resources> I want ...
2
votes
3answers
30 views

How to use JPA with a random database i.e., user submitted

I am using UCanAccess and was setting up my Entities and Persistence Unit when I realized that the DB location is hard coded into the PU.xml (which is fine to build my entities, but I need to have it ...
1
vote
1answer
10 views

Create a clear button to clear canvas android

I can't get my clear button to work in my program. My circle button works which displays random circles but my clear button does nothing. I'm lost. I know i'm supposed to use ...
0
votes
0answers
15 views

GeoQuiz Android App does not run

My code isn't running on my phone. I get the following error. Error: adev_set_parameters: ERROR: set param called even when stream out is null Error: W/virtual loc_api_adapter_err ...
-1
votes
0answers
32 views

How to convert below code in XML? [on hold]

There are 9 different documents and 1st part is user input via radio button and 2nd part is switch and 3rd part is common for all document like enter name , city etc.. So, do I need to another more ...
2
votes
1answer
17 views

Problems with JAXB, Marshal, - unable to marshal type “java.lang.String”

when I run the marshal operation I get the following error: javax.xml.bind.MarshalException - with linked exception: [com.sun.istack.internal.SAXException2: unable to marshal type ...
0
votes
0answers
9 views

Moxy Not Being Recognized

I have a need to use Moxy to marshall some Java Strings that themselves contain XML, I am following this post describing the use of a DOMHandler. There are also some references to a bug in the JAX-B ...
0
votes
0answers
26 views

Could not load properties

hi i am going to develop web-services in java (NetBeans) but have problems with get conection, i get the following error: org.springframework.beans.factory.BeanInitializationException: Could not ...
1
vote
0answers
9 views

simple-xml preserve comments and ignored elements on deserialization/serialization

I'm using Simple framework deserialize an xml into an object, modify it and serialize it again. The xml I provide is a configuration xml with comments and some unused nodes. I would like to be able to ...
0
votes
0answers
38 views

Write to file using spring

I'm trying to write the name of a new 'item' into a text file, but I get some kind of error when doing this, it's like it reads from and writes to different files, this is what I've got. ...
3
votes
1answer
38 views

Generating Pretty JAXB classes

I have used JAXB for XML parsing in the past and created my own simple classes for it. Those were POJOs like public class Foo { @XmlAttribute public String someAttribute; public String ...
1
vote
1answer
16 views

How to change Up button Android ActionBar?

I searched many solutions and implemented solution of Jake Wharton My style.xml code is <resources> <style name="AppBaseTheme" parent="android:Theme.Light"> <item ...
2
votes
2answers
18 views

How to generate multiple, slightly different XSD schemas from one Java model with JAXB?

I have a set of related Java classes, which are able to hold data I need. Below is a simplified class diagram of what I have: Now I need to import data from XML and for that I want to generate XSD ...
2
votes
0answers
35 views

How to un-pretty print XML [duplicate]

I would like my XML to be not-pretty printed, i.e. all on one line, no spaces between elements. e.g. ...
0
votes
1answer
30 views

How to add a circle after each button click android?

I am trying to add a circle after each button click to the same screen. I haven't implemented the other button code yet but its supposed to clear the screen. The circles are supposed to be in a random ...
0
votes
1answer
17 views

cvc-complex-type.3.2.2: Attribute 'key' is not allowed to appear in element 'props'

I am new to use hibernate in spring. I am trying to set the properties of hibernate through properties prop tag, but it is giving some error, can you please tell what it means and how it can be ...
1
vote
1answer
29 views

Drawing Circles using Canvas and Framelayout android

I am trying to create an app that displays a circle everytime I click a button. I have the layout looking great but when i click the button(circle) to display a circle on the screen nothing happens. ...
0
votes
1answer
24 views

Is it possible to store multiple types of arrays within one array of arrays?

I am currently working on a project where I get a set of data from an XML file. The XML file has multiple node that store different data types (strings, ints and bools). Java returns each of these as ...
0
votes
2answers
36 views

Passing a XML File (InputStream) to XSLT avoid using Document in XSLT javax.xml

I am new to XML, XSLT and javax.xml Currently my objective is to merge two XML files using XSLT Version 1.0 and everything works fine. But I feel that there is a limitation in my code and I would ...
1
vote
0answers
41 views

XML Validation against XSD using Java

I have requirement, to validate the XML against the XSD. I need the tag name where the problem is. The below URL code is good, it validates the contents and throws exception, but it does not give the ...
0
votes
2answers
13 views

Suggestion inside XML Number Android

I am doing an app that involves getting input from the user, and so I want to be as minimalist as possible. I am looking for a way to place what should be written in a number box like this: ...
0
votes
0answers
24 views

Validating XMLEvent

When parsing XML an error is generated. "An invalid XML character (Unicode: 0x2) was found in the element content of the document" This is the relevant code: final XMLEventReader eventReader = ...
0
votes
1answer
26 views

How to generate @XmlSchemaType for an element customized with xjc:javaType

I would like to use xjc to generate JAXB objects while using an XmlJavaTypeAdapter I'm currently using the following in global bindings: <xjc:javaType name="java.lang.Boolean" ...
0
votes
0answers
10 views

Trying to get the XML element attributes using JIBX

I have an XML where some of the elements have attributes. Following is the example; <RATES> <DATE>09/30/2014</DATE> <TIME>06:35:00</TIME> <STATE CODE="AK"> ...
0
votes
0answers
3 views

Join/Combin one Project To another Project Manifest (AndroidManifest.xml)

how to add project in to another project https://github.com/Pirngruber/AndroidIM and (or other bluetooth chat project ) https://github.com/luugiathuy/Remote-Bluetooth-Android i think error ...
0
votes
0answers
7 views

Jboss Bind differents datasources

I have developed an application in java and i use tomcat. In this web application, i declared in web.xml this resource : <resource-ref> <description>My datasource</description> ...
0
votes
0answers
8 views

Change/Override the xml processor of RestExpress

Im out of luck this week, I would want to override/change the xml processor to handle my own xml format, my format would be the same as freeswitch adding new user using mod_xml_cur, My problem is ...
0
votes
4answers
49 views

Android: How to direct to another page?

Hey awesome coding geniuses! I'm a student doing my final year project and i need some help. I hope you coding geniuses can help! I want to direct my Login.java page to my Camera.java once i click the ...
4
votes
2answers
25 views

JDOM2 - two Namespaces

I am trying to build the following XML structure: <EDIOrderPackage xmlns="urn:URI" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <Version>1.0.0.0</Version> ...
2
votes
1answer
17 views

Unmarshalling XML elements by attribute name versus tag name

Here's the XML I'm trying to unmarshall: <eveapi version="2" zkbapi="1"> <result> <rowset name="events"> <row eventID="41551776" solarSystemID="30003069"> ...
0
votes
1answer
25 views

Convert a Tree like List of Strings to xml [on hold]

I need to convert these type of strings which are stored in an ArrayList : Alpha.Beta.Com. Alpa.Xeta.Hash. Alpha.Eta.Dot. Alpha.Eta.Comma. Alpha.Eta.Dollar. Alpha.Xeta.Tilde these strings are like ...
0
votes
0answers
8 views

Can I Convert List to HashMap in Dozer Mapping Framework?

Actually I am very new to Dozer Mapping Framework, Is it Possible to Convert from List to HashMap type by mapping xml if it is, Please kindly help me out and make me brief enough about how to map and ...
4
votes
3answers
26 views

xs:String in xs:DateTime format to XMLGregorianCalendar

I use JAXB for un/marshaling XML messages which I get from server. Usually I get the XMLGregorianCalendar values in the fields, that are defind as xs:dateTime in the describing XSD files, so the ...
-1
votes
1answer
37 views

XML to JSON Conversion Issue

I have an xml schema - <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" ...
0
votes
0answers
32 views

Error when parsing XML on Android 2.3.3

I'm trying to parse Xml, it worked on Android 4.3, but not on Android 2.3.3. It crushes, when reaches russian symbols. I tried to set encoding (parser.setInput(in, "windows-1251")), but it didn't ...
-1
votes
3answers
39 views

How to write a XPath that selects a attribute value in two different levels

There are 2 tables and I need to select the "date1" text which might be in the tr/td/a in the 1st table or tr/td in the 2nd table. How to write a xpath for this kind of scenario? <div> ...
0
votes
2answers
18 views

Navigation Drawer Android List Item Hight

I made a custom drawer for an android application but there is a problem that the first Item's hight is bigger than all other items.. My XML code of Navigation Drawer is: ...
0
votes
2answers
51 views

XML file wrap_content issue

I have this XML file <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" ...
-1
votes
0answers
28 views

How to open a “ .jar,v ” file extension

Not sure if i'm missing something really obvious but i"m having one hell of a time opening a .jar,v file. No its not just a plain .jar file, i'm lost as to what the extra ",v" at the end of the file ...