All Questions
5,327
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
vote
0
answers
14
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....
2
votes
3
answers
93
views
.NET 8.0 Not Normalizing Whitespace for xs:token Elements?
I'm working with C# and .NET 8.0.6.
I have an XSD that declares a "root" element with xs:token content. When I validate a document with an instance element that has padded content, the ...
0
votes
1
answer
132
views
Sample Code: VB getNamedItem XML attribute in Microsoft MSXML.DOMDocument [duplicate]
Apologies, I know this is olden days stuff but I'm suffering a bit of brain fade here, I just need a specific code example to get on...
This is the problem using an XML snippet returnd by a remote ...
0
votes
0
answers
57
views
C# How to change XmlSerializer "cultureinfo settings"
I realize this same kind of question has been asked previously by some people. But solutions in those haven't really helped me.
My problem currently is that I have XML messages where for example ...
-1
votes
2
answers
83
views
Universal way of extracting tag values out of XML document to a List<string> [duplicate]
I have a XML document being loaded into a webpage representing a single client looking like this:
<!--?xml version="1.0" encoding="UTF-8" ?-->
<html>
<head&...
0
votes
2
answers
84
views
Parsing data with a varying structure from XML to a List<string>
I have a XML data representing a single client loaded into a web browser such as this:
<!--?xml version="1.0" encoding="UTF-8" ?-->
<html>
<head></head>
<...
1
vote
4
answers
100
views
Inserting an XML string in existing document with C# breaks everything
I'm using C# with the System.Xml classes to manipulate an existing XML document.
In particular, I need to insert pieces of XML that I have in string form inside specific nodes in the document.
To do ...
0
votes
0
answers
41
views
Unable to trap System.Xml.Xsl.XslLoadException in .NET code and Breaks IIS
I am unable to trap the error thrown by the XslCompiledTransform class when I try to load a stylsheet with broken or bad Xslt code in it. This causes and unhandled Microsoft .NET Framework exception ...
2
votes
2
answers
52
views
Why does XmlWriter not always format the XML as specified in XmlWriterSettings?
BACKGROUND
I get a lot of xml files that contain no newlines and to quickly format them I use the function below.
SCENARIO
When I run the tool the first time on a file that contains no newlines
(and ...
0
votes
0
answers
30
views
How can I display the name of my generic type T in the documentation of a class which instantiates a generic interface? [duplicate]
My problem is that I have a generic interface in my C# .Net WPF project and I want my XML documentation to display the chosen Type to be displayed in the class that implements the interface.
This is ...
0
votes
0
answers
264
views
NET MAUI : Android native Layout with XML layout leads to Android.Content.Res.Resources+NotFoundException
When using MAUI handler to incorporate LinearLayout, an error is thrown : Android.Content.Res.Resources+NotFoundException
The XML used is the following and put in the Platforms\Android\Resources\...
0
votes
1
answer
128
views
System.Xml.XmlException: 'Data at the root level is invalid. Line 1, position 1.' <-- even though ive changed the encoding and parts of xml
I want to extract some data values from an XML that I have made but I keep getting an error
System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
I thought it was the ...
0
votes
1
answer
173
views
How to fix the attribute is not declared while performing xml validation
How to resolve "The 'Level' attribute is not declared." error with next xml file:
<Settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://...
0
votes
0
answers
176
views
XmlDocument createElement method with only namespace prefix, without nsValue in the tag
I have this xml header where tag is the root:
<?xml version="1.0" encoding="UTF-8"?>
<CBIBdyPaymentRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...