Questions tagged [xml]
77211 questions
1
votes
2
answer
741
Views
Loading Wikipedia Dump into Elasticsearch
I want to load a XML Wikipedia dump like:
http://ftp.acc.umu.se/mirror/wikimedia.org/dumps/enwiki/20171001/enwiki-20171001-pages-articles.xml.bz2
into Elasticsearch (5.6.4).
However, all tools and tutorials I found are outdated and not compatible with my Elasticsearch version.
Can anyone explain wha...
1
votes
2
answer
76
Views
Wrap content not working and scroll stopped working
Wrap content not working and scroll stopped working.
Hi, I'm developing an app for Android and I have noticed that my app works perfectly in smartphones, however in Tablets in Portrait mode it adds a huge space and the ScrollView stops working.
Smartphone's view:
Tablet's view:
My XML code:
If I rem...
1
votes
3
answer
2.5k
Views
Cannot parse xml file in jenkins pipeline
I have simple xml file, that I need to parse in pipeline.
I need to exctract values of all servers' names into variable.
So I used code below but get only 'unclassified field java.lang.string Config' exception
deleteDir()
stage('upload') {
def inputFile = input message: 'Upload file', parameters: [...
1
votes
1
answer
215
Views
Image of small dimensions automatically resizes when using Glide Library
I have an issue with the GIF Resizing.
My GIF dimensions is 136*136 px and I'm trying to load it into an image view (that has its width and height set as wrap_content) using Glide library. But the GIF ends up taking the entire screen.
My XML file code snippet looks like below:
ImageView
android:id='...
1
votes
1
answer
164
Views
Jackson XML to Pojo - Array without wrapper
I have a list of tags with same attributes but doesn't have a wrapper element to make it as a arraylist.. how can I hold this as an arraylist in Java Spring-boot application?
1
votes
1
answer
61
Views
In WSO2 ESB is validate XML before coming to the api
Is there a way to validate XML coming to the WSO2 ESB API since in order to validate.
I'm getting an error when the wrong XML comes to my API. This is the error I'm getting when it comes to the API I want to validate before that.
[2018-10-19 10:00:03,531] ERROR - LogMediator Could not build full log...
1
votes
2
answer
1.1k
Views
android studio makes corrupted Colors.xml, then unknown errors occur [duplicate]
This question already has an answer here:
Android Studio shows wrong file contents
6 answers
Recently I was working with my android studio with no problems, suddenly my project started giving random errors(about my resources) after I tried to add a new library to my project.
I completely cleaned th...
0
votes
0
answer
8
Views
Error when building Netbeans 11.0 from source
I installed Apache Ant version 1.10.5 on my Windows 10 desktop system in order to build Netbeans 11.0 from source. I set the environmental variables and ant seems to be running properly. However, when I cd to the Netbeans folder and run ant to build it, I get the following error:
BUILD FAILED
E:\Net...
2
votes
5
answer
58
Views
Can XPath and XQuery work on HTML documents?
I heard that an HTML document is not a XML document from https://stackoverflow.com/a/39560454.
XPath and XQuery work on XML documents. Can they work on HTML documents, and why?
Although I don't know why, I guess XPath can work on HTML documens, because of https://www.quora.com/Why-do-we-use-XPath-in...
1
votes
2
answer
44
Views
Azure Transform XML to JSON
I'm trying to transform the following XML into JSON using Azure liquid mapping to find the session ID.
0
No error
A VALUE
I'm trying to use this liquid file to convert the XML to find the sessionID in JSON.
{
'Session': '{{content.soap:Envelope.soap:Body.LogInResponse.SessionID}}'
}
This just retur...
1
votes
3
answer
39
Views
How to send and recieve XML data to and from an API service in PHP without cURL
I'm working a project to request data from api service by sending XML data. The programming language used is PHP. I have done so much research on the internet and nothing turned up except for using cURL. Is there any other way using PHP to achieve this.
1
votes
1
answer
64
Views
Read variable by name from server.xml
How can I programmatically read temp from the xml file from a Java based web application?
Was trying:
String temp = System.getenv('temp');
1
votes
1
answer
34
Views
xslt how to get not keyed nodes?
Input xml:
275938887119275938
275921887119275921
10011285902431001128
10011115902431001111
7194A2010000242261
7194B2010000242278
Keys:
Hello i'm grouping products based on sizes hidden in name of products, and i need key to store all products which are not in any of other keys.
Expected grouping:...
1
votes
2
answer
63
Views
Converting a CSV file into appropriate XML format
I'm trying to get some tab-delimited CSV files into an XML via PowerShell, and I'm struggling to make sense of it all. I'm 100% sure it's something really simple I'm missing, so help would be massively appreciated. I'm very close but just can't get over the final hurdle.
I essentially want this scri...
1
votes
3
answer
27
Views
Is there a way to parametrise an animation?
I've created a simple animation to make a view move up and down repeatedly:
I'm using an animation resource for that like it is suggested in the docs. However, at compile time I don't know how far down the view is supposed to go (toYDelta) as it will depend on the device screen.
Is there a way to p...
1
votes
2
answer
52
Views
TextView not appearing on emulator and real device
This is how the design looked in Preview tab
But when I run it on emulator or real device, valid until date not appearing.
Thanks
1
votes
2
answer
39
Views
How to Read all inner recursive values from XML using XSLT
need to Extract Values from all levels of Recursive XML structure.The structurte in all levels is same
Level0
level5
level4
level3
level2
level1
Expected Result should be in the follwing format
Level1,Level2,Level3,level4,Level5
1
votes
2
answer
32
Views
Import from XML drops leading 0
I have an SSIS package that imports an XML file into SQL. The data of one particular field could be '112' or '039', for example. It is always three characters and gets padded with a leading 0 if only two.
The Destination field in SQL is varchar. For some or other reason SSIS is changing it to DT_UI2...
1
votes
1
answer
37
Views
Remove XML hierarchy elements with the same name using XSLT?
An XML response I am getting has the same named elements next to each other in the response which is causing me issues, I need to remove this recurring element using XSLT 1.0. The element in question in the response is . I have had a look through other questions but can't find what I need to transf...
1
votes
2
answer
25
Views
Extracting nested XML elements of different sizes into Pandas
Lets assume we have an arbitrary XML document like below
Organization 1
academic bachelor
academic master
Here is some text; blablabla
Scrum master
bachelor
academic master
academic bachelor
Organization 2
Text from another organization about some stuff.
Excutives
Organization 3
Also another huge te...
0
votes
0
answer
3
Views
Can I have two persistence.xml files in my spring maven project
Is it possible for me to have two different persistence.xml files under META-INF eg. persistence-one.xml and persistence-two.xml and then somehow use in my spring-context.xml to use the appropriate one using property files ?
I am doing this because I have two separate environments with different...
1
votes
3
answer
1.3k
Views
serialize to XML path issue
I am trying to serialize my Report class info to an XML. At this point I think all of the serialize and deserialize code works, but for the initial write, I'm having trouble performing the serialize, because the XML file doesn't exist yet.
for an empty text file, i can use:
StreamWriter sw = File.C...
1
votes
1
answer
1.4k
Views
Marshalling DIDL-Lite with Go's xml package
Here's a sample DIDL-Lite XML document from the UPnP AV ContentDirectory v2 Service Template:
...
How would one go about marshalling to this with Go's xml package? More specifically:
How are namespace prefixes defined, such as xmlns:dc and xmlns:upnp?
How are multiple name spaces configured on an el...
-1
votes
0
answer
19
Views
Adempiere Web Service Issue with SOAP
I was trying the ADempiere web service through the SOAP UI. I have started the ADempiere server and when we run the below SOAP request I am getting error as below. What could be the reason for this?
SOAP Request
CreateBPartner
C_BPartner
0
Create
Sajeev
Sajeev Sahadevan
N
N
N
ADempiere
105
GardenUse...
4
votes
2
answer
123
Views
Jaxb unmarshal xml which contains the & <> signs
To parse my XML with JAXB I have already generated the required POJO's and successfully able to parse the XML. But whenever my xml contains '&' '' signs it's failing. As per the rule this needs to be changed to '&' but the 3PP generating the XML does not follow the rule. Now how can I parse this...
0
votes
0
answer
4
Views
How to display placeholder Chips within ChipGroup in xml?
I have a layout with a ChipGroup whose chips will be populated programmatically, but I want to visualise how chips will look like within the layout, is there a way to show fake chips like for example using the tools namespace?
1
votes
1
answer
1.7k
Views
how to add comments to an xml file using xslt or xpath
I have just learned xpath and xsl and i have a question.
How can i add e.g. the comment to the beginning of each xml element named foo?
Can i do it using xpath or xslt?
0
votes
0
answer
3
Views
Extract tag contents based on value of another tag qualifier using xmllint
I'm trying to use xmllint to extract data from a tag if a condition exists on a previous tag. I know there are probably better tools but I'm limited to xmllint and/or system standard commands like sed, awk, etc.
xml file:
Capture This A
Just,a,random,list,of,things,to,discard
Capture This A
Just,a,r...
0
votes
1
answer
25
Views
How to display the xml tags as a list using css?
Suresh KC
[email protected]
Harry Jones
[email protected]
2500
John Deo
9866123456
2500
i want to display teamleader and member as
Suresh KC [email protected]
Harry Jones [email protected] 2500
John Deo98661234562500
I tried using list-style-type:decimal; property of css but...
1
votes
4
answer
13.5k
Views
Generate XML file in C# with XSD file
I am trying to build a new XML file with C# using an existing XSD file.
this is the xsd file :
Format: yyyyMMdd
Format: yyyyMMdd
The feedback type for this file
I have done the following things to create the XML file :
made a class with xsd.exe
I added the class to my project
wrote the following f...
1
votes
2
answer
4.3k
Views
Return list of all nodes from xml column in sql database
I'm working on an SQL database and I need a way to return a list of all products that have a tag attached to them. Here's a quick example of my xml
fee
activation
I also have a column for ProductType and ProductID. What I need to do is pull out all entries of a certain product type, and list off the...
1
votes
2
answer
1.3k
Views
Convert XML Nodes To Rows in SQL Server
Consider the below sample:
declare @somexml as xml
set @somexml = '
1
2
3
4
5
'
The above XML has some ID values that I need to convert to rows of data that can be used in a temp table to perform joins against.
I can't quite get the syntax correct, I've tried a number of samples that I've come acros...
1
votes
2
answer
4.8k
Views
How to get XML file from Java Request object before sending. Web services SOAP
I am building Java application for Online Web Services and let's call it application A . I got the WSDL file form the second party so I can communicate with their application and let's call it application B.
From the WSDL file I generate the Java classes needed which are Requests and Responses clas...
0
votes
0
answer
17
Views
is == null while getting xml file from internet
I have the following situation: I need to get xml file from the Internet and then get lyrics from this file. Here's the url of this xml. Here's the code, which I wrote and which should do it.
private static class NetworkLyricsDownload extends AsyncTask {
@Override
protected Void doInBackground(Void....
1
votes
0
answer
16
Views
Is there any way to find out specific tag values from XML through SQL Server?
I am setting up alert using extended event in which I am pulling out info in XML format so I got stuck in finding out the values - Object name from this XML.
SELECT CAST(data AS XML) AS [result]
FROM #temp
WHERE data LIKE '%Abort%'
Using this query, I have pulled out those records which gets tim...
1
votes
3
answer
14k
Views
Place a image view and a Text view in same line
I have several logos and i want to set a Textview right next to it so that they are in the same line. I can't place them in the same line.please help me. I want my textview right next to my image.
my layout
1
votes
1
answer
575
Views
Getting Xelement.elements() using a path
I have some xml like this.
I have the parent element to call .Elements on. I looked this up, but I cant figure out how to do get the element Pr directly
XElement element = (from item in parentElement.Elements('Map/Pr') select item).FirstOrDefault();
Path I provided seems to be incorrect. Whats the r...
1
votes
2
answer
1.9k
Views
Get XElements List of XElements List from XML document using linq to xml
I create a list of node object:
public class Node
{
public string Key { get; set; }
public string Value { get; set; }
}
public class ListNode : List { }
And i have an xml document :
xxx
111
yyy
222
zzz
333
aaa
444
what i want to do is to put these xml elements to a List of ListNode objects using li...
1
votes
2
answer
183
Views
How to call to an Umbraco dictionary item in XSLT?
I'm working on an Umbraco site which mostly uses .cshtml files, but for a couple small places, they use .xslt files to handle embedding videos. I don't know a thing about .xslt. But, through my googling, I've figured out what I need to put to call to a dictionary item (which will replace hard-coded...
1
votes
2
answer
1.7k
Views
Android XML Layout with imagebuttons in a row
Im trying to create a row of image buttons, so lets say 3 rows and 3 columns.
I keep trying to make the images all the same size but the design just messes up.
Trying to get something like this:
Image Image Image
Image Image Image
Image Image Image
Can someone help me get these in line?