Questions tagged [xml]

Extensible Markup Language (XML) is a flexible, structured document format that defines human- and machine-readable encoding rules.

-2
votes
1answer
9 views

How to add backbutton functionality to app

I'm trying to add a backbutton functionality to my app. However when I try to add the id of the backButton like so, Button back = findViewById(R.id.backButton); back.setOnClickListener(new ...
0
votes
0answers
16 views

How to parse xml element using jaxb in java

I have the following xml content which is inside a larger xml. I want to parse the xml to get value "ok ok ok ok". Xml content : <com.ibm.rqm.planning.editor.section.planBusinessObjectives xmlns=...
1
vote
3answers
57 views

Why does browsers parse <script> tags differently?

I am developing a new site and while writing some client side HTML/Javascript code, I came across this scenario. If there is HTML encoded characters within the <script> tag, for example, <...
0
votes
1answer
23 views

Grabbing Correct Data from XML data (Using XSLT)

I am looking to grab data from multiple nodes, but am having trouble finding a way to make it work the way I want. Sample Data: <Records> <Record> <ID>100</ID> &...
0
votes
0answers
7 views

XML Source can't find XSD File [duplicate]

I have a SSIS project running in VS2017. It has a Data Flow Task that copies data from an XML file to a table. The XSD file is referenced in the expressions to a variable that has the right path and ...
0
votes
0answers
28 views

SQL Server cast from xml to nvarchar truncates data

I need to select an XML datatype from the SQL Server and convert (or cast) to a string. Some characters are unicode so I cast to a nvarchar as follows: cast(h.XMLCol as nvarchar(max)) This is ...
-1
votes
0answers
26 views

empty variable in result

i have colour options in opencart 3. black main +0 $10, option1 red +$2 ($12), option2 yellow +$3 ($13). sending prices to xml. i do not want black price in results. $options = $this->...
0
votes
0answers
13 views

Cannot parse list in WCF

I cannot receive list in my WCF endpoint. This is my XML file. I can't edit this structure <wcf:Carro> <wcf:Fabricante> <wcf:Fabricante> <wcf:Id> ...
0
votes
2answers
18 views

Get Node for XML with namespace using XPath

I am attempting to select a node based on a value in an element in an xml file that contains a namespace. I am using Automation Anywhere's Get XML Node command that limits me to using a single line ...
3
votes
2answers
33 views

Using SOAP, how to pass multiple ID's in one request?

I have a soap envelop in which I want to pass 200 IDs` in one single request. I have already created a list of 200 ID's and I am passing it to a function. private static XmlDocument ...
0
votes
1answer
19 views

NiFi – How can I use MergeRecord to Merge Files into JSON WITHOUT Producing JSON Array?

I have two XML files (dummy versions below, actual contains PII) that I am attempting to merge together into one flow file using MergeRecord. My flow is that I get the files, I use ExtractText to ...
0
votes
1answer
18 views

Getting error after running simple xml code in Rstudio

When I run this code, I get error. Not sure why this is happening. I am using Rstudio 64bit library(XML) fileURL <- "https://www.w3schools.com//xml//simple.xml" docs <- xmlTreeParse(fileURL,...
-1
votes
0answers
37 views

Retrieving data from SQL server in a custom ListView? [on hold]

Basically I have some data in the database that I want to retrieve in a custom list view, everything is working fine except the data is not displaying in the list view and I can't find where is the ...
1
vote
1answer
22 views

How do I select unnamed node in HTML or XML using XPath?

I try to access the text inside the <dl> environment following the <p> environment with the text "Bedeutungen:" inside. I try to specify an XPath to select this specific <dl> node. &...
0
votes
1answer
9 views

Tasker cannot “Restore Backup” XML document?

I took a tasker backup a while back, and it's in the XML file below. I need to restore it but it says "Could Not Be restored, sorry :). How do I repair this? Tasker reinstalled, cleared data <...
-2
votes
1answer
21 views

how can i get all number of chatting whats in my android app

I need to get all numbers has been chatting with me on whats to my android app Regardless of this number of my contact or not
0
votes
0answers
50 views

How can I parse Web API JSON response?

I created an ASP.NET Web API but I can't deserialize it's responses in Android studio. And the response is like this lines: [{ "FName": "name", "LName": "family", "Mobile": "", }] Also! in ...
0
votes
1answer
25 views

SQL Server XML - modify multiple elements

I have a SQL Server XML column with data like this: <History> <Entry> ..... </Entry> <Entry> ..... </Entry> </History> I need to add a ...
0
votes
0answers
9 views

Send special characters in xml through web service using Java

I'm consuming a web service that receive 2 parameters. There is a parameter that receive a document XML. When I call the AXIS to send my request the document sent in parameter is escaped. I'v readed ...
0
votes
0answers
27 views

How to log details in php xml file for Twilio sms response

I have implemented Twilio SMS response from Youtube video (its just one minute video) This works for all the cases but if I receive a text from Google Pixel I am not able to respond I am storing all ...
0
votes
1answer
20 views

Get data of a subtree in a big XML file using XMLReader and PHP

I'm trying to read a big XML file using XMLReader and I can't find a way to loop through a subtree correctly. So far, I tried to use the read() and the next() functions. And it's not working ...
1
vote
1answer
17 views

Is an XML declaration an XML element? [duplicate]

From https://en.wikipedia.org/wiki/XML#Key_terminology XML documents may begin with an XML declaration that describes some information about themselves. An example is <?xml version="1.0" ...
-1
votes
0answers
13 views

XML data parsing to CSV using python with element tree

I have complex XML data need to parse that to csv file. I tried to using element tree but getting empty file while iterating. My sample XML data <sounds> <tracks> <...
0
votes
0answers
18 views

When exchanging java classes from xsd (xsdi), the location paths of the generated classes are constantly changing

Trying to repurpose classes, the ways are constantly changing: It was: "org.test.gettest1" "org.test.gettest2" It became: "org.test.gettest1_xsd" "org.test.gettest2_xsd" Constantly change the way ...
-3
votes
0answers
27 views

Convert specific txt file into specific XML format [on hold]

Small part of txt(Compare.txt) file looks like this: ------------------------------------------------------------------------------- Compare Results Compare Dir 1 : /data/test/Log/Run_9/tif-link-dir ...
2
votes
1answer
30 views

C#-Soap how to get values from response

I am working on a C# console application. I have hardcoded a soap request in which I have passed 200 unique IDs like below. Request <soapenv:Envelope xmlns:soapenv=""http://schemas.xmlsoap....
1
vote
1answer
18 views

Xmlstarlet select nodes and adding subnodes

I'm trying to automate adding new subnodes to nexus-core-feature-3.16.1-02.xml Because we are using some plugins for work that not come with "box" solution. The main point that when new version of ...
0
votes
0answers
11 views

unable to read message.properties file using EAP-7.2.0 and JSF

I am trying to read the message.properties using JBoss EAP 7.2 but it is not happening. same Source code is working JBoss 7.1. I had tried to add javax.faces-2.3.8.jar,javax.servlet-api-4.0.0.jar ...
6
votes
1answer
39 views

Call different processing functions for attributes in an XML element

When handling XML attributes in C++, what should be used to running different operations depending on the given attribute? Currently, I have something like this: // get list of attributes for an XML ...
0
votes
0answers
15 views

Error : '(' required to start ATTLIST enumeration

I have an XML document to make where I am getting the error as: error on line 5 at column 22: '(' required to start ATTLIST enumeration I looked into all the syntax and issues for the same but couldn'...
-1
votes
0answers
15 views

How to extract complex MS Word Canvas Graphic objects as png?

I am working on converting a word file to xml. As the first step I save the word file as web page to extract the graphics. However the canvas graphic objects get skipped during this process, specially ...
1
vote
1answer
23 views

A modification in layout-masters.xsl in original plugin not shown in output PDF file

I made modification in layout-masters.xsl and added the layout-masters.xsl in catalog.xml. However, the change does not appear in the output PDF file. How can I get it to recognize the modification? ...
-1
votes
1answer
49 views

c# Best way to read from XML into class and write back to file [on hold]

I have a special XML file which has more attributes but to exemplify what I'm trying to achieve, I've reduced it to the following: <?xml version="1.0" encoding="utf-8" ?> <Ref1 Att11="XXX" ...
0
votes
1answer
11 views

Need help using javascript to display a table and a description when I hover over an item

My table prints out, but when I hover over an item, it won't print the description on 'area2'. I want it to load the description from the xml file and print it according to the item I hover over. e.g.:...
-4
votes
0answers
26 views

How to read xml file with DOM in Java [duplicate]

I have a small package with the Input clase which reads and parses a xml file with DOM. But I'm getting a problem with the file localization. I use main to call the readXml with the xml file name, ...
0
votes
0answers
9 views

How to Convert httpContent to XmlDocument in C# without writing to Disk? [duplicate]

I am calling an API with HttpClient and I get an HttpContent. I would like to convert this to an XMLDocument object without writing to disk. I can "make" the conversion by writing to disk, like this: ...
-1
votes
2answers
23 views

How to add a vertical scrollbar in the android app? [on hold]

I need a scrollbar for my app and keep the position of all my items? I try to use the scrollview but all the items ordered horizontally. <?xml version="1.0" encoding="utf-8"?> <android....
0
votes
0answers
7 views

I want to show raw XML data from API in formatted way in C# Web based page

I cant show the XML data in the formated way in my web app. The Data i am receiving showing like that http://prntscr.com/newpno But i want to show it in Formated way nicely in C# Please Help Here is ...
0
votes
2answers
27 views

Why part of text is located behind the screen?

I have the following problem: part of the text in textview is located behind the screen I don't understand why it happens as usually when I use wrap_content text has several lines and all of them ...
2
votes
1answer
38 views

error: attribute 'com.example.mahdi.servicemanager:headerLayout' not found

I have a problem with my android studio. When I want to create a project or I want to open my previous project get this error AAPT2 error: check logs for details and when I check logs take this error ...
0
votes
1answer
18 views

How to set different colored/width borders on a layout

I want to set different colored and width borders to top/bottom/start/end of a layout in android, i've tried the following but it didnt work. <?xml version="1.0" encoding="utf-8"?> <layer-...
-1
votes
0answers
24 views

How to Fix “Failed resource linking reference”,in Android Studio?

I am trying to make a login UI in android studio, I add the assets and the XML code, I put the assets in drawable file but when I run this project there error " failed resource linking references. and ...
-1
votes
2answers
44 views

python3 parsing XML

I have the following xml which contains email configuration for various email service providers, and I'm trying to parse these information into a dict; hostname, is_ssl, port, protocol ..etc <...
0
votes
0answers
27 views

How to obtain circular cardview when height is dynamic?

In order to get a circular CardView, one would use <androidx.cardview.widget.CardView android:layout_width="100dp" android:layout_height="100dp" app:cardCornerRadius="50dp"> </...
0
votes
1answer
23 views

How to customise or add a common header and footer to a report in odoo 12?

How to customise or add a common header and footer to a report in odoo 12? I have found four types of report layout(background, boxed, clean and standard). But I am not able to add a header and footer....
0
votes
1answer
47 views

Unexpected escaped CRs inserted with XSLT output-method=“text” transform

My question here is what the logic of the following behavior might be, or if it's a bug (in MSXML6 under Windows) even what failure of logic could underpin such a bug. Consider the input XML file. &...
0
votes
1answer
22 views

Text-align:center not working in CDATA in string.xml

I want to center text with CDATA in string.xml. I used following but no result. , are working. But text-align="center" not working. I used also . but no result.I also used . again fail. no solution. ...
0
votes
0answers
24 views

Jenkins xml API with exclude show too much

I'm trying to use exclude option for Jenkins API: http://jenkins:8080/api/xml?tree=jobs[displayName,lastBuild[result],builds[actions[lastBuiltRevision[SHA1]]]]&exclude=hudson/job/build/action/...
0
votes
1answer
25 views

Using IMPORTXML function on a shared XML file stored on Google Drive throws an error “Imported Content is Empty”

This is my first go at using importXML. I have a .xml file stored on my Google Drive, called CallsTrunc.xml. It can be viewed here: https://drive.google.com/file/d/1eum_mv5sn7ve27ZF0L4zR7Pip_mPdgQw ...
-1
votes
0answers
14 views

Get xml string resource from database

I want to create and Android app that makes an http request on launch, and creates a kind of String.xml resource file. This file Should then be used to set all the TextViews in the app. Then if i ...

http://mssss.yulina-kosm.ru