Questions tagged [xml]

XML (Extensible Markup Language) is a structured document format defining text encoding rules. When using this tag include additional tags such as programming language, tool sets, XML technologies being used, and other tags describing the environment of the problem posted. XML flexibility lends to a wide variety of uses for human and machine data transfer so be specific as to tools and libraries.

0 votes
0 answers
17 views

Parsing XML in C# using XmlDocument getting wrong Attribute values

I am trying to parse XML file in c#. This is part of my code: foreach (XmlNode node in dataNodes) { if (node.SelectSingleNode(@".//Imetnik").Attributes["matSub"] != null)...
user avatar
0 votes
2 answers
16 views

XSLT : Unable to remove entire parent node content when child node is equal to some value. Has 2 different namespaces

I am trying to remove the entire content of an enclosing parent node. I want to remove entire <contactStanza> when the value of its child node <ns2:contactTypeCode> is NOT 'ABC' or 'DEF' I ...
user avatar
  • 1,521
0 votes
0 answers
17 views

hi we create a dynamic sitemap in codeignitor but in view it will treat my xml file as html.. can anyone guide?

can you guide how to set on route.. currently we set header in our controller.. we set header in our control.. but in view it will show as plain text. my controler code ... public function sitemap(){ ...
user avatar
0 votes
0 answers
16 views

How can I query xml with javascript?

javascript: (async () => { const rss = [ 'https://reddit.com/r/news.rss', /* 'https://www.upwork.com/ab/feed/jobs/rss?api_params=1&amp;orgUid=424151849314844673&...
user avatar
  • 66.3k
1 vote
1 answer
16 views

Rendering XML data in React

I am trying to render some filtered xml data into a web page. The data is in an array and is pictured below. This is my code at the minute but I am very lost. I have tried many different variation ...
user avatar
  • 23
0 votes
0 answers
25 views

Issues Deserializing complex XML into objects C# .NET Core 6 MVC Web App with API controller

This will be a long question as there is a lot of code to show to determine what the root cause of the problem is and for others to be able to run the code to help solve the issue. The issue that I am ...
user avatar
0 votes
0 answers
6 views

using python on xml file and upload to mysql

this is the xml file. I downloaded it using this code: import requests import xml.etree.ElementTree as ET URL = "https://www.nicosia.org.cy/el-GR/rss/parkingspaces/" response = requests....
user avatar
0 votes
0 answers
20 views

Huge merge conflicts when moving from one release branch to next. Auto-generated pom.xml files

When moving from one release to another, we create a new branch for the next release. People who clone from the previous release to make changes or add new files, and want to merge with the oncoming ...
user avatar
-1 votes
2 answers
30 views

How to find element inside element and an attribute with XPath?

I want to extract the following value from the following element <div style="width: 15%" data-toggle="popover" data-placement="top" data-trigger="hover" data-...
user avatar
1 vote
2 answers
42 views

Create XML nodes for values in SQL

I'm having an issue to create XML nodes. Help is much appreciated ! This is a sample code declare @tbl as table ( employeeName nvarchar(50), payFrequency nvarchar(50) ) insert into @...
user avatar
0 votes
1 answer
23 views

filter special data from the quoted string and generate output sequence number from for-each condition

I really worked many ways to solve it but I couldn't able to finish it. Code snippet Click here for code and result My request payload is <process> <TransactionType> <data_xml> ...
user avatar
  • 21
0 votes
0 answers
8 views

Merging junit html reports

I need to merge junit reports that are already in HTML format. I am aware that XML ones can be combined out-of-the box. However I no longer have access to existing XML reports. Only HTML ones. Is ...
user avatar
1 vote
0 answers
19 views

Jackson: jackson-dataformat-xml: Required attribute of JsonProperty annotation is ignored when deserializing from XML to Java

I have a problem using Jackson, more specific jackson-dataformat-xml. When JSON is parsed, there is a check on properties that are annotated with JsonProperty with attibute required to true. If the ...
user avatar
0 votes
1 answer
26 views

Groovy assert: xml nodes to compare

i have an xml: <body> <car> <color>green</color> <nr>88</nr> </car> <car> <color>yellow</color> &...
user avatar
  • 1
0 votes
2 answers
23 views

Xpath: Check if node doesn't exist

I get the XML from my webshops API call structured much like the example below: <Customers> <Customer> <Username>userOne</Username> <Params> <Param> ...
user avatar

15 30 50 per page
1
2 3 4 5
13925