All Questions
29,283
questions
-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 ...
-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
{
...
-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 ...
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 ...
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 ...
-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"
...
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=&...
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"&...
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 + "...
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 ...
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 ...
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 ...
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....
-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 ...
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 ...