Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
78 views

I am trying to deserialize a given piece of XML that looks like this: <?xml version="1.0" encoding="utf-8"?> <tst:myRootElement xmlns:tst="myGivenNamespace"> ...
Frank_J's user avatar
  • 11
1 vote
1 answer
117 views

I want to (de)serialize internal classes. internal class Data { public string? Name { get; set; } public string? Type { get; set; } public List<DataWithAttribute> DataList { get; set;...
Kartopelka's user avatar
0 votes
1 answer
598 views

I'm iterating through the child elements of a flattish XML, and adding a certain attribute for elements that are empty. import groovy.xml.XmlUtil import groovy.xml.MarkupBuilder import groovy.xml....
Axel K.'s user avatar
0 votes
1 answer
99 views

I want to change the publicationDateTime="2023-07-31T07:02:59+00:00" attribute. My xml is <?xml version="1.0" encoding="UTF-8" standalone="no"?><...
Sudarshan kumar's user avatar
1 vote
0 answers
175 views

I am working with python on the creation of two types of files: EVFM and SMURF, which both follow the xml structure. One example of such files is the following: EVFM My approach is to use the ...
Luca Pizzuto's user avatar
0 votes
0 answers
30 views

I have a pre-existing XML structure which I want deserialised into C#. The structure of the file is: <SLOT_DEFINITION> <SLOT name="head" > <MESH model="head01....
Thomas Slade's user avatar
0 votes
1 answer
346 views

I want to remove an attribute of a specific element, which includes a namespace. In the following element: <CountryCode xsi:nil="true"></CountryCode> I want to remove xsi:nil=&...
Rina Tse's user avatar
1 vote
0 answers
89 views

I have an XSD schema file using anyAttributes for allowing custom extensions for different users. Unfortunately, I am getting problems with the C++ code generated by gSOAP. It works fine for ...
CJacker's user avatar
  • 11
1 vote
1 answer
229 views

Good day all, I have trouble adding namespaces correctly to my XML. Both the parent and child elements have the own namespaces. When restructure the code I have gotten mixed results. My sample code ...
learning's user avatar
1 vote
1 answer
99 views

I have a problem with some values not being declared as XML elements in my XML files. But for further processing, I need them to be an element. Example: <A> <B id="254"> ...
JME's user avatar
  • 27
0 votes
2 answers
740 views

I have a problem with some values not being declared as XML elements in my XML files. But for further processing, I need them to be an element. Example: <A> <B id="254"> <...
JME's user avatar
  • 27
0 votes
1 answer
957 views

I have a problem with some values not being declared as XML elements in my XML files. But for further processing, I need them to be an element. Example: <A> <B id="254"> ...
JME's user avatar
  • 27
0 votes
1 answer
88 views

I want to add the add attribute 'id="number"' to an existing file. id attributes should only be added if the element has at least one child. So right now my XML file looks like this: <...
JME's user avatar
  • 27
0 votes
1 answer
103 views

I want to add the add attribute 'id="number"' to an existing file. But the number should be ascending in the way they are added. So right now my XML file looks like this: <Invoice> ...
JME's user avatar
  • 27
1 vote
1 answer
131 views

Within XML there exits elements and attributes. There is a special attribute called xsi:type. Can an element have two xsi:type declarations? Example using Dublin Core. Element Example <dc:date>...
Hugh's user avatar
  • 15
1 vote
3 answers
459 views

I have the following wizard structure [ field name and data type ] Type :- Selection :- Type 1 and Type 2 Route :- One2many When Users select Type 1, I want to allow them to add records in the Route ...
Bhavesh Odedra's user avatar
0 votes
2 answers
123 views

public string[] UnpackXML(string xml_string) { string response = xml_string; string[] return_values = new string[6]; XmlDocument xml = new XmlDocument(); xml.LoadXml(response); ...
bullfighter's user avatar
0 votes
1 answer
153 views

hi I am trying to parse xml with namespace and attribute. I am almost close by using root.findall() and .get() However still struggling to get the accurate values from xml file. How to get the xml ...
anonymus's user avatar
0 votes
1 answer
58 views

If I println($values) I will get the results of the correct attributes for each file fully written as shown in array as key on left but I would like to run the results against the array (valuesCodes) ...
GuinnessGorilla's user avatar
0 votes
1 answer
1k views

My code currently goes through a list of folders/subdirectories looking for '.csproj' files. The properties "Include" and "Version" are taken from the found .csproj file(s) and are ...
sirgroot's user avatar
1 vote
2 answers
116 views

I'm aiming to accomplish the following with a PowerShell script. Most sub folders in "C:\Example-Path\src" contain a single .csproj file that includes a "Property Include" and &...
sirgroot's user avatar
0 votes
0 answers
128 views

I'm creating hacking lab(XML injection) and i want to save the text as it is for example: input text: tryingtoattack" but DOMDocument encoding the quotes(or any spacial char) like this output ...
Mirza Hasnat's user avatar
0 votes
1 answer
62 views

I'm trying to serialize Xml using the XmlSerializer and by using its attributes. My problem is that I'm not getting the data of the EVENT items. I'm not fully aware of how to treat the combination ...
Guy E's user avatar
  • 1,957
0 votes
0 answers
238 views

I have an XML string obtained as response of SoapClient request (I have also tried with cURL) I then use: $xml = simplexml_load_string($result); I am able to obtain the attributes of a node inside $...
HeytalePazguato's user avatar
-1 votes
1 answer
120 views

Edit: Updated the XML file Requirement: Need to read attribute name value from all the tag. Sample XML FIle: <ObjectConfig> <ObjectAttribute name="A"> <ListenerRule&...
Pradyoth cherry's user avatar
1 vote
1 answer
300 views

I am new to VBA and to use VBA on excel and write a macro to export an xml file per row (see the example in the print screen): Excel Example The Account should be an XML element and the transactionID ...
YumYum's user avatar
  • 51
1 vote
1 answer
1k views

Worked with Json until now. Now I get an XML as data source and I would like to Deserialize it into C# objects using the XML attributes. The problem, as I see it is that I would like to serialize the ...
Guy E's user avatar
  • 1,957
0 votes
1 answer
316 views

How is each individual writer given a distinct attribute, so that one of the examples below would have multiple write attribute nodes? desired output: <writers writer="n"></writers&...
Nicholas Saunders's user avatar
0 votes
2 answers
966 views

Trying to query e-mail addresses using xpath and xquery but am not getting any results when simple query: xquery version "3.1"; for $contact in db:open("sample") return $contact ...
Nicholas Saunders's user avatar
0 votes
1 answer
304 views

I am getting xml data from xml file to c# object which looks like below: Xml: <OrderItem> <OrderItemCode>1234</OrderItemCode> <ASIN>dfsdfcs</ASIN> ...
Vatsal Patel's user avatar
1 vote
2 answers
3k views

I am sending an XML payload to a webservice and capturing the response payload in dataweave transformer. For some payload data, I am getting the expected response, but for some of them, I am getting ...
RV2509's user avatar
  • 35
2 votes
2 answers
1k views

I want to get the text value of every child that has one and every attribute value of every child that has one. I can get the text values but I am having trouble getting the attribute values one by ...
Green Green's user avatar
1 vote
1 answer
77 views

Normally XML elements to get edited on web page are sent over as the input name Example : Then In C# controller method: List<string> keys = Request.Form.Keys.Cast<string>().Where(item =>...
user avatar
0 votes
1 answer
531 views

My boss have a strange request, he wants me to add a new function to serialize and deserialize all our products classes and add in the XML file all their property's types automatically. I can't modify ...
Alexus's user avatar
  • 296
2 votes
1 answer
388 views

I am working on code that formats an XML file so that subfolder nodes are actually nested within their parent node. The source XML has every folder as a separate childnode in the root instead of the ...
ThomasW's user avatar
  • 33
5 votes
1 answer
5k views

Im trying to access "def" in XML so in this example I would be getting Evolus.Common:PlainTextV2 as output. I cant seem to figure out how to get an attribute with a namespace. If I was trying to just ...
Jack Soder's user avatar
1 vote
0 answers
53 views

we are able to generate the XML structure shown below, where the data is linear with no grouping with respect to the models. <transaction> <header> <trantype>siv</...
Samir Das's user avatar
0 votes
3 answers
1k views

I have a XML where the attribute names can be combinations of lower-case and upper-case letters. In the below example, 'datasource' attribute can have any number of lowercase and uppercase letters. I ...
Sujeet Padhi's user avatar
0 votes
2 answers
7k views

I'm new to Jackson XML and I have a requirement of constructing a Jackson XML with different element name and attributes but under same root element. My Expected xml output <item name="Whatever"&...
tpal's user avatar
  • 1
0 votes
2 answers
1k views

I have been trying to make a quizzing app using RadioGroups for each question having 4 options. I have made the app to calculate the score of the user by maintaining a pointer for both the correct and ...
lazy__panda's user avatar
1 vote
1 answer
935 views

I have some test code snippet: import groovy.xml.XmlUtil import groovy.xml.StreamingMarkupBuilder class Greet { def name Greet(who) { name = who[0].toUpperCase() + who[1..-1] } def salute() { ...
aolphn's user avatar
  • 3,008
1 vote
2 answers
1k views

I have an XML file that looks something similar to this: <root> <data label="product data" min="0" max="10"> <option> <id>1</id> <...
Sonhja's user avatar
  • 8,520
-3 votes
3 answers
2k views

I got a class which represents a soccerplayer: public class PlayerExtended { [XmlAttribute("id")] public string Id { get; set; } [XmlAttribute("shortName")] public string ShortName { get; set;...
k.troy2012's user avatar
1 vote
1 answer
710 views

Having the XML <node attribute="value1">text</node> what would be the XPath to extract the text if attribute is value1 or value2? For any other attribute value I'm expecting no match. ...
Michal Kordas's user avatar
0 votes
1 answer
369 views

I'm using fasterxml 2.9.4 per the below and trying to serialise the CurrencyAndAmount class inside a parent class as: <ParentClass Currency="USD">100000</ParentClass> But instead I am ...
mba12's user avatar
  • 2,802
5 votes
2 answers
3k views

I am trying to make an XML file with a root element: <urn:Command complete="true" xmlns:urn="namespaceURI"> So I have an element Command a namespace namespaceURI a prefix urn and finally an ...
nick macdonald's user avatar
0 votes
2 answers
2k views

I'm new to xml, and using the pugixml documentation I haven't been able to read a node attribute to the console. The core of the issue is that I don't understand how the node accessing structure works ...
Alex's user avatar
  • 11
0 votes
2 answers
95 views

I Need to Code an XML-File in C# using XMLDocument. I extract the desired XML-File and only Need to insert some Elements i Need to add. The EXPECTED Output should look like this: <service> &...
V.Kirsch's user avatar
0 votes
0 answers
71 views

How should my class look like to serialize to/from a XML like this <root> <MyCollection ColDetails="val1"> <Col_Obj> <Prop1>xxxx</Prop1> <...
MrCalvin's user avatar
  • 1,858
1 vote
0 answers
96 views

I need to implement calls to some service that provider refuses and/or is unable to give WSDL for... I have trouble with Serializing to XML. URL in XmlTypeAttribute.TypeName gets encoded. Since I ...
Djiber's user avatar
  • 55

1
2 3 4 5
7