Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
-1 votes
2 answers
42 views

DataContract Name attribute with varying XML field

I'm calling a generic endpoint /api/foo (third party, no control over it) which returns an XML describing foo. You can pass whatever entity name as foo and it will return its data. Below are some ...
Jorgoth's user avatar
  • 15
-1 votes
0 answers
44 views

How to only allow access to XML file through application

I have a c# application that contains 2 methods. One to create an xml document, and one to load all of the nodes of the xml document to a tuple list. using System.Xml; namespace SOXMLExample { ...
Alpha Reuel's user avatar
-4 votes
2 answers
45 views

How to create one time collectible coins in Unity?

I have created coins in a scene in unity that the player can collect and will disappear upon collection. however when the player leaves the scene and then comes back the coins reappear how can I ...
Thomas Wilson's user avatar
1 vote
0 answers
27 views

Soap webservice returning Request format is invalid: text/xml

I have created a web service. Unfortunately, I am not well versed with SOAP call, however I don't think I am far off. The web service shown below has 3 test endpoints which I am able to call without ...
EasyE's user avatar
  • 580
0 votes
0 answers
23 views

Nullable Element Handling with LxNillable.Create() in Liquid Studio 20.7.11

I'm generating C# classes from an XSD file using Liquid Studio 20.7.11. While the XSD elements are marked as nillable (nillable="true"), the generated C# classes have the isNil flag set to ...
Ahmadou Kassoum's user avatar
-1 votes
1 answer
44 views

Insert prefix in a Xml string [duplicate]

I need to be able to write this Xml string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:a="http://www.w3.org/2005/08/addressing" ...
Modest's user avatar
  • 13
0 votes
0 answers
24 views

Nlog is not writing to the file

Im using Nlog for my project. And for some reason I don't get any logs in the project folder. this is my nlog.config: <?xml version="1.0" encoding="utf-8" ?> <nlog xmlns=&...
Hai Elimelech's user avatar
0 votes
1 answer
36 views

Send !DOCTYPE inside XML content using Refit

How could I be sure that every time Refit sends an API call to an endpoint the !DOCTYPE declaration is defined. <?xml version="1.0"?> <!DOCTYPE greeting SYSTEM "hello.dtd"&...
H. Pauwelyn's user avatar
  • 14.1k
0 votes
1 answer
55 views

C# Linq to XML - Keeping namespaces in parent nodes while removing them from child nodes

So I have this XML tree created through LINQ to XML, like this: XNamespace xNamespace = "urn:OECD:StandardAuditFile-Tax:PT_"; XElement main = new XElement(xNamespace + "...
MuchoG's user avatar
  • 55
0 votes
3 answers
57 views

How to read RSA private or public key from XML

I am not able to understand how to assign private key from a XML file into a c sharp variable. I have found some of the example for assigning private key into a variable like below, private const ...
RahulK's user avatar
  • 1
0 votes
0 answers
36 views

Partial interception of default XML serialization C#

I am trying to create an XML object serialization base class to accumulate a bunch of stuff that I've learned over the past few years, to have a ready to use example whenever I need it. I want to add ...
Elias Verstappe's user avatar
0 votes
0 answers
46 views

In C#, how can I compare the structure of two HTML files and then update second to match the first?

Consider I have two HTML files that are structurally identical except for the language used to fill each element (i.e., English vs. Spanish). In the first file, I'm going to add a custom element ...
J. Galus's user avatar
1 vote
0 answers
16 views

Remove soapcore xml response namespace

I have a soap service made with soapcore and .net 6 where the current response looks like this: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www....
Jefferson Lopes's user avatar
-1 votes
0 answers
72 views

when converting the code from csv to xml, the text does not transfer from the file

When running the code, a terminal is launched in which all the text from my file is shown, but then when opening the file values is not there. What could be wrong. About my code : I try to convert CSV ...
Shiryazdan Ushurbakiev's user avatar
1 vote
0 answers
27 views

Deserialize XML with unknown xsi:type attribute

I am trying to Deserialize XML and having trouble defining xsi:type which could be something new. I need to read child nodes of AutxObject irrespective of type, child element nodes are fixed and ...
sumit kumar's user avatar

15 30 50 per page
1
2 3 4 5
1953