Questions tagged [xml]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
7 views

XPath $ and curly braces meaning?

I am working on adobe workbench and inside there is use of XPath. In a template I see that the use this format (below) ... I would like to know what it means starting from I am seeing a forward ...
0
votes
0answers
4 views

MyBatis MapperScannerConfigurer to scan base package from classpath

I have configured MapperScannerConfigurer in spring application context as follow: <bean name="mapperScannerConfigurer" class="org.mybatis.spring.mapper.MapperScannerConfigurer"> <...
0
votes
0answers
10 views

Can't use multiple ElementTree fromstring statements

I might be doing this the completely wrong way, but I'm new to ElementTree and XML namespaces. I'm working with an eBay API response and I am trying to obtain multiple pieces of data from the same XML ...
0
votes
1answer
11 views

How can I make a table of 49 images sorted by an element's value in XSL?

I'm trying to make a borderless table of images (7x7). Tried to specify columns number with an XML element's attribute (which worked, translated as 7), but the block <table cols="{table/@row-size}"&...
0
votes
2answers
15 views

How to I get the value of the assignee tag from the following XML using Powershell

XML: <?xml version="1.0" encoding="UTF-8"?> <work-item> <field id="assignee">John Doe</field> <field id="author">admin</field> <field id="created"&...
0
votes
0answers
39 views

Input major type table to procedure

I'm trying to read a xml data from backend and pass the data to the procedure as typetable. When I try it with small xml data (500kb with 1000 rows) the procedure work correctly. But when i use it ...
-1
votes
2answers
20 views

How to get value of child node of parent nodes child node

I know the question seems confusion because it is confusion to me. I thought best I show example. I have a partial xml file as shown below. I need to get the value of the VALUE child node of the ...
0
votes
1answer
23 views

Why do I see values from another position (xslt)?

Sorry for this noob-question, and I solved this already by adding empty templates which is not very elegant, but can anyone help me understand why I kept seeing values from another 'level' in my ...
1
vote
0answers
5 views

ebay api FiexedPriceTransaction notification and get the updated item quantity

When the FixedPriceTransaction is sent, I need to know what is the new quantity of the item purchased, so if I call GetItem api, have the info of the item purchased quantity decreased ( updated ...
0
votes
0answers
10 views

Java: XML wrapper for non-list elements

@XmlElementWrapper(name = "messages") @XmlElement(name = "message") private List<Message> messages; This code works fine producing the following XML: <messages> <message></...
0
votes
1answer
27 views

Element Button is not allowed here

I created a fragment_b.xml file in my resources/layout folder. On my two buttons I get the following warning: Element Button is not allowed here Why is this warning popping up? My code is working ...
0
votes
1answer
19 views

Fetch XML weather data from yr.no

Im not an experienced with XML but trying to create a website and need to use some weather data from a norwegian weather services (yr.no) specific this url(https://www.yr.no/sted/Norge/Akershus/B%C3%...
0
votes
1answer
19 views

XSLT can't get value of nested node

I have the following xml: <?xml version="1.0" encoding="UTF-8"?> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <IsAliveResponse xmlns="http://...
1
vote
1answer
15 views

java.lang.IllegalArgumentException: No SchemaFactory that implements the schema language specified by: http://www.w3.org/XML/XMLSchema/v1.1

String language = "http://www.w3.org/XML/XMLSchema/v1.1";SchemaFactory factory = SchemaFactory.newInstance(language); Please, anyone helps me. Thanks in Advance.
0
votes
1answer
12 views

ASP.NET MVC: Dowloading data as a file to local computer. SAve As dialog

I generate a xml dynamically (serializing my custom type XMLDocType) in an ASP.NET MVC3 through the code below: XMLDocType XMLdoc = new XMLDocType(); … generating contente for XMLdoc … XmlSerializer ...
0
votes
0answers
20 views

Android XML; How to 'tab' out of the attribute double quotes?

When I'm typing code in the android xml layout file, I have to write some attributes. However when I'm done I would like to 'tab' out of the double quotes so I can write the next one on a new line. ...
0
votes
1answer
11 views

Eclipse: how to disable XML validation for a specific test-file?

Im my projects .../src/test/resources/xml directory there is an XML file called invalid.xml which - as the name might suggest - contains non-valid XML. This file is used in one of our test cases to - ...
0
votes
0answers
42 views

Parsing XML elements into an Array in Java

I need to update specific items in a database. These items can be found from the database by using the ID-value found from the XML-file. The XML-file is something like this: <Employees> &...
1
vote
1answer
25 views

Linq to Xml : Remove namespace

I am retrieving an element or node from my xml doc. All goes well but when I retrieve the node it get assigned the namespace of my root. This I don't want. I just want the node as it was before (...
0
votes
0answers
6 views

Getting node from xml multilevel

I have an XML structure like this, what is the easiest way to get {'Option.P_Name'} without using loop. Thank you. [Job.U_96D7142F246866668ECB55DA5A50A9] => SimpleXMLElement Object( [Option....
-1
votes
1answer
17 views

I need to open accordion with link cross browser

I have a map in svg separated into areas, each area has a link to open an accordion with this jQuery code: jQuery('a.btnSVG').click(function(e){ e.preventDefault(); var linkRegioni = jQuery(...
2
votes
1answer
31 views

Android - Changing app language for all versions of Android

I tried a few ways to change the locale of the android app, but when I test my app on Android 7.0 or lower, the locale is not changed. Note: The ways worked on Android 8.0 or upper, but they didn't ...
0
votes
0answers
22 views

Linq : Find element from xml doc using name [duplicate]

Consider this first bit of my XDoc called ftmTempPayloadDoc. <Document xmlns="urn:Internal:tech:xsd:rint-bookg.001.001.01" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="...
0
votes
1answer
10 views

XSD to java beans

I am new to XSDs format. I am trying to convert one xsd to java bean using xjc.But on converting I am getting multiple beans rather than getting just one bean.How to obtain one single bean from the ...
0
votes
1answer
23 views

Is there a simpler way to fetch the id from xml using xpath

<table class="xju" id="pt1:_d_reg:region2:1:dtrt_dc_4333407150" cellpadding="0" cellspacing="0" border="0" summary="" currentxpathtry="15"> <tbody> <tr> ...
0
votes
1answer
16 views

How to use <choice> from complex types in XSD with 2 values of a same element?

I'd like to validate XML "filter" blocks of 2 kinds, whose "shape" contains either of 2 values : "empty" or "circle" : if "empty", the block should only contain "shape". if "circle", "center" and "...
0
votes
1answer
13 views

postgres complex xml parsing

I have below xml, an employee can have several reportees and each reportees can have inturn several reportess, however the hierarchy can have a max 4 inner reportess. I need the result of this XML to ...
-3
votes
3answers
54 views

XML generation using c#

My goal is to generate xml structure in this format <?xml version='1.0' encoding='UTF-8'?> <return xmlns:rmas="value here" xmlns:xsi="value here" xsi:noNamespaceSchemaLocation="value here"&...
0
votes
0answers
26 views

Java Android App Layout Crash - Using CoordinatorLayout and Fragment [duplicate]

I'm developing an Android app that has the following layout. It is expected to have a map that covers most of the screen, a button at the bottom left and a camera button at the bottom right. <?xml ...
0
votes
0answers
15 views

Change MultichoiceItems text color in a Alert Dialog [duplicate]

I created a custom style for AlertDialog with dark background in styles.xml, but when I use setSingleChoiceItems or setMultiChoiceItems, the text color of items remains black, like in this image. I ...
-1
votes
0answers
21 views

xml - Manifest merger failed with multiple errors, see logs in Android Studio [closed]

I just made an app for my project, and when I run it, it shows like this: Manifest merger failed with multiple errors, see logs I already clean and rebuild project. But not work. I try open ...
0
votes
0answers
13 views

Thick border line issue in XSL FO Table - PDF Creation Using Apache FOP

i am trying to hide fo:table row or column lines based on the requirement from web application, so i used to set border-style="none" to fo:table-column or fo:table-row based on the need, but when i ...
1
vote
1answer
18 views

XSLT / XML select value by name

New to XSLT, but have a scenario below. I am trying to get the GroupControlNumber value of 'ABCDE' in my XSLT, but can't figure out how to call it by name. Here's a snippet of the XML <...
0
votes
1answer
26 views

Ajax XML Update every 10 seconds

I have made an Ajax XML script that will open a XML file, find an attribute value and display it in a DIV. it will do this every 10 seconds as the XML file is updated frequently. I have run into an ...
-1
votes
0answers
11 views

Getting info from Standard input and save Output as a xml file with python

I need help with writing a simple code to get info from the SDTIN and save it in XML format. Would be great if you share some similar real examples. It supposes to be something like this: Input: ...
1
vote
1answer
21 views

Default XML schema / XSD when none is specified?

I am capturing lessons learned about data I/O from a data analyst's perspective, without the benefit of data engineering expertise (and being quite explicit about that shortcoming). In order to give ...
1
vote
0answers
35 views

XSLT 1.0 (xsltproc) - Unable to Parse Huge XML

I am trying to parse an input xml file that is 13,00,000 lines long with a size of 56 MB, using xsltproc. I get the below error: input.xml:245393: parser error : internal error: Huge input lookup ...
1
vote
2answers
40 views

C# - Duplicates in List of string Lists instead of proper values

Im reading from xml file using foreach (as in below) and writing found info into a List, which then is later added to a list of lists. My problem is that the moment foreach loop is trying to add ...
0
votes
1answer
27 views

Read/Extract data from XML with Python

I am trying to read/extract data from XML with Python using xml.etree.ElementTree. Unfortunately, up to now, I didn't find how to do it. Most probably because I didn't understand how xml works. The ...
0
votes
0answers
29 views

XSL Transformation from xsd

I am new to xsl transformations and i have a problem with looping child elements. I am trying to get tree of elements values from IN.A.Number1. My xsd looks like: <xs:schema xmlns:xs="http://www....
-2
votes
0answers
21 views

Save game to XML file of TicTacToe Game winform C# [closed]

like the title, says I have a tic tac toe game that I created in WinForms using C# but I would like to be able to save the game in an XML format, as in I make a few moves save the game to an xml file, ...
0
votes
0answers
21 views

What's the * replacement in xml to indicate any string

I have this in my xml file: <constant name="struts.action.excludePattern" value="/ws/*"/>. In the 'value' attribute what I want to say is that I want any string. For example, "/ws/some_string" ...
-1
votes
2answers
39 views

Saving XML file “on the fly” in c#

I work on an app where user can type in some text. Text is saved to XML file, I try to make the file save “on the fly” as user is typing so it saves instantly. However if data is typed quick, I get an ...
1
vote
1answer
22 views

How to use different colors for each item when selected in BottomNavigationView?

My question is how can I use different a color for each item in BottomNavigationView design in android? for example if I have 4 items: item 1 would be green when selected, item 2 blue ,... Here is my ....
0
votes
2answers
35 views

Convert Dataframe to XML

I'm trying to convert a dataframe to xml. It is about 600K records. I'm using the XML package: library(XML) con <- xmlOutputDOM("mydata") for(i in seq(nrow(mydata))){ con$addTag("person", attrs ...
-1
votes
0answers
21 views

My App crashes everytime in Android studios what is the problem? [duplicate]

This is the xml file <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" ...
1
vote
1answer
23 views

Problems with hibernate and persisence.xml

I am trying to make my first hibernate app and after running my main I get these errors: gru 12, 2019 7:00:03 PM org.hibernate.jpa.internal.util.LogHelper logPersistenceUnitInformation INFO: ...
0
votes
1answer
14 views

Developing / existing programs using SGML / XML as input and text as output - Structured Technical English (STE) [closed]

Seeking advice re developing / existing programs that use .XML and .SGML files as input, and text as output (eg to text going into text files / excel files). Also seeking possible software & ...
0
votes
1answer
15 views

Import Tag from xml file to another using JAVA

I do my work with this piece and my problem is simple. Just changing the place of transfer. I did not know what is the matter responsible for determining the place of transportation in the first or ...
0
votes
1answer
23 views

XPath: How to save the return of a function in a variable?

Is it possible to save each item in the elements in a xpath variable to use this value in same expression? The XPath expression have to be in one line. My goal is to transform the duration in ...