All Questions
36,599
questions
-1
votes
0
answers
8
views
Android TextView.setText(R.string.text_from_string.xml_file); does not show font colors which were used to decorate strings and in string.xml file
I put some strings in string.xml file as follows.
<string name="text1749">The <font color="#DE0010">book</font> was written by Mr. Martin Vikramasinghe.\n<font ...
-1
votes
0
answers
24
views
Disabling external entities XML parsing error
I am getting a blocking vulnerability from SonarQube (Disable access to external entities in XML parsing.) in my Code:
public void validateAgainstScheme(String xmlContent, String xsdLocation) throws ...
1
vote
1
answer
31
views
SpEL expression involving multiple beans
The beans are defined thus:
<bean id="defaultSourceMetaData" class="com.example.metadata.SourceMetaData">
<constructor-arg type="java.lang.String" ...
0
votes
1
answer
38
views
how to set certian attribute value in array node while maintaining of original structure of xml file
i have xml with multiply blocks of worker.
i want to change the date field format (from string to date) only if the original value not equal to null.
In addition, it is important to maintain the ...
0
votes
0
answers
21
views
xml manifest property errors
so i have a video player app i was struggling with a few things so i got someone to help me.
when i got the code back he had used github to sync different versions of the builds. now if i look at the ...
0
votes
0
answers
24
views
How to Customize XML Namespace Prefixes Using JAXB, Keeping Only Specific Prefix?
I'm generating XML using JAXB and need specific namespace prefixes for my XML elements. Here's an example of the XML structure I am currently generating, where each namespace has a unique prefix:
<...
-4
votes
0
answers
30
views
How get id xml files if i have String name? (Java) [closed]
I have a code in which I access an XML file and take the data there. I need to make sure that he finds it for me by the name of the document and I can contact him. On Java.
I have data in the game ...
0
votes
1
answer
32
views
button.setOnClickListener() Crashes Android App, on Device Rotation
I'm working on a project that updates a textview with text when a button is pressed. For example, you press 0 and 0 displays on the textview. When the device changes orientation, such as when the user ...
0
votes
1
answer
47
views
How to use BLE specification XML service files?
The link BLE device information XML is a BLE service XML file copied from the original GATT specification files. Can I and how can I use this XML file for my project on Android Studio in Java? I am ...
0
votes
0
answers
23
views
encountering Error: Content is not allowed in prolog with spring boot and apache camel, when transforming
I am writing a springboot application to convert SOAP to REST by using apache camel -
private String transformSoapToRest(String soapRequest) throws ParserConfigurationException, IOException, ...
0
votes
1
answer
35
views
Appending xStream output to an xml file with proper structure
I am writing a small Java program to keep and update a list of books in my personal library. A prompt asks the user for the book's data and the new book is saved (appended) to an XML file. The method ...
-1
votes
0
answers
25
views
What is the point in using for example StAX for signing / verifying signatures if the elements get buffered anyways?
I have been trying to use Apache Santuario to sign and verify signatures of large xml documents in Java. If it gets to really big files I still regularly get Java out of heap space and memory errors. ...
-1
votes
0
answers
38
views
How to create xml sub element by XmlElement annotation
I need to create the following type of XML file as an output.
JDK 1.8 (must use javax.xml.*)
Expected:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<...
0
votes
1
answer
34
views
Image in front of text - CENTER
I have the following XML
CTGraphicalObject graphicalobject = drawing.getInlineArray(0).getGraphic();
long width = drawing.getInlineArray(0).getExtent().getCx();
long height = drawing....
0
votes
0
answers
16
views
Android widget not displaying any data for Listview, just shows the header
I am new to android widgets, and writing this in a sample app. For some reason my widget just displays the widget_toolbar the list view remains empty.
Following this example.
Here is my code:
...