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
0
votes
0answers
10 views

Regular expression with negative lookahead failing in XSD [duplicate]

I'm trying to validate a restricted string using a regular expression ... <xs:simpleType name="myStringType"> <xs:restriction base="xs:string"> <xs:pattern value="^urn:...
0
votes
0answers
7 views

Some problems in daimajia AndroidImageSlider

I am using daimajia AndroidImageSlider in my android app to show some images according to following codes : Activity_main.xml : <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:...
-1
votes
0answers
8 views

Drawables in an external server

The problem that I'm facing is that my project contains a lot of drawables that take a lot of place, so I would like to know how to stock them else where, how to call them in the XML file and how to ...
0
votes
0answers
7 views

Writing an XML file with ElementTree (Python3) with namespace

I am using the ElementTree package to modify an XML file Here is a sample <?xml version="1.0" encoding="UTF-8"?><esf:configurations xmlns:esf="http://xxxx/esf/2.0" xmlns:ocd="http://www.osgi....
1
vote
1answer
39 views

What's the fastest alternative in R to do this string regex processing?

I'm dealing with 75GB XML files i.e. it's therefore impossible to load them in memory and build a DOM XML tree. Therefore I resort to processing chunks of lines (using readr::read_lines_chunked) in ...
1
vote
1answer
26 views

Convert an XML UTF-8 encoded string to XML datatype in SQL Server

Converting an XML string using CAST( AS XML) works as expected in many scenarios, but fail with an error "illegal xml character" if the string contains accented chars. This example fails with error "...
-2
votes
0answers
20 views

XML and XSL References. How can I do this?

I am trying right now to make a list with xsl showing a studentlist I made. The problem is...I have ID's in the xml, referring to the things I need. But now i want to make a List with XSL sorted by ...
0
votes
0answers
18 views

How to change app:layout_constraintStart_toStartOf=“parent” to layout_constraintTop_toTopOf=“parent” on Code-Side?

How can I change app:layout_constraintStart_toStartOf="parent" to layout_constraintTop_toTopOf="parent" on Code-Side? I already tried: ConstraintLayout conlay = findViewById(R.id.main_constraintLay); ...
-3
votes
0answers
33 views

Is this programming or not? [closed]

We have an application at work called FileProcessor. It's a command-line .exe file (with a plug-in .dll adding UI editor), which is able to run an XML file and do stuff written in this XML (looks ...
-1
votes
0answers
10 views

libxml2 - parser error : internal error: Huge input lookup [duplicate]

I am trying to parse an input xml file that is 600,000 lines long with a size of 40 MB, using xsltproc (libxml2). I get the below error: xsltproc myXSL.xsl input.xml > output.xml input.xml:245393: ...
-1
votes
0answers
19 views

Insert loop elements in TreeMap

I am trying to insert elements in a TreeMap instead of static values as I find in many tutorials Here is my following code: //import statements public class WriteExcelDemo { public static void ...
0
votes
0answers
5 views

NativeScript Creating a Form with Different Input Elements Dynamically

I have a questionnaire app written in NativeScript (using Vanilla JS and XML, not Vue or anything like that) and need to be able to display different input elements depending on the type of response ...
1
vote
1answer
19 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
11 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
14 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
17 views

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

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
19 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
49 views

Input major type table to procedure

I'm trying to read XML data from my 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
25 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
29 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
6 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
12 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
2answers
30 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
25 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%...
1
vote
1answer
24 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
15 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
43 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 [closed]

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
36 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
24 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
17 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 "...
1
vote
0answers
14 views

Query SSIS metadata in over 200 packages deployed using package deployment for hard-coded connection to specific servers

I am trying to ensure that copies of over 200 SSIS packages in SSIS 2012 that were deployed using package, not project, deployment do not have any design-time or hard-coded connections to certain ...
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
73 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
16 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 ...
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
30 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
55 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 ...