xmldocument Questions
2
i'm using GetElementsByTagName to extract an element from an xml.
GetElementsByTagName is case sensitive - it throws an exception if the node name is 'PARAMS' instead of 'Params'.
i dont want that ...
Cyanate asked 15/9, 2010 at 9:37
8
Solved
Lets say I have the following xml (a quick example)
<rows>
<row>
<name>one</name>
</row>
<row>
<name>two</name>
</row>
</rows>
I...
Lazare asked 28/11, 2011 at 16:36
4
Solved
Consider the following simple code which creates an XML document and displays it.
XmlDocument xml = new XmlDocument();
XmlElement root = xml.CreateElement("root");
xml.AppendChild(root);
XmlCommen...
Fallfish asked 12/2, 2013 at 18:50
4
I have an XML well formatted without any spaces. It' must be like that.
When I load it to XMLDocument to sign, the self-closing tags gets an extra white space and
<cEAN/>
becomes:
<...
Aberrant asked 3/2, 2011 at 0:32
6
Solved
If I want to compare the contents of a XMlDocument, is it just like this?
XmlDocument doc1 = GetDoc1();
XmlDocument doc2 = GetDoc2();
if(doc1 == doc2)
{
}
I am not checking if they are both th...
Tridentum asked 27/5, 2010 at 19:46
12
Solved
When I build XML up from scratch with XmlDocument, the OuterXml property already has everything nicely indented with line breaks. However, if I call LoadXml on some very "compressed" XML (no line b...
Arber asked 15/10, 2008 at 2:25
5
Solved
Say I have this constructor:
/// <summary>
/// Example comment.
/// </summary>
public SftpConnection(string host, string username,
string password, int port) {...}
which has these ...
Ermelindaermengarde asked 8/9, 2010 at 12:37
13
Solved
As part of the base class for some extensive unit testing, I am writing a helper function which recursively compares the nodes of one XmlDocument object to another in C# (.NET). Some requirements o...
Fairweather asked 3/10, 2008 at 17:19
3
Solved
Been looking around for an answer and cant find anything - Im quite new so maybe Im not hitting up the right key words?
This is a sample of the XML I am working with
<database>
<book>
...
Youngs asked 26/10, 2012 at 5:45
6
Solved
Here is how I'm currently converting XMLDocument to String
StringWriter stringWriter = new StringWriter();
XmlTextWriter xmlTextWriter = new XmlTextWriter(stringWriter);
xmlDoc.WriteTo(xmlTextWri...
Yovonnda asked 9/3, 2010 at 7:31
3
I have read a comparison between the two here. This is primarily a question of performance, relating to both memory and speed.
I've got several XML documents that are upwards of 100 - 300 K in siz...
Karmakarmadharaya asked 8/12, 2010 at 3:33
7
Solved
I am loading a lot of xml documents and some of them return errors like "hexadecimal value 0x12, is an invalid character" and there are different character. How to remove them?
Bennett asked 10/1, 2014 at 19:46
3
Solved
Namespace Manager or XsltContext needed. This query has a prefix, variable, or user-defined function
I am trying to call SelectNode from XmlDocument class and trouble due to this error:
Namespace Manager or XsltContext needed. This query has a prefix, variable, or user-defined function.
My co...
Luzern asked 22/11, 2012 at 11:15
5
I am using a third-party DLL which transmits an XML document over the internet.
Why would the DLL be throwing the following exception?
Data at the root level is invalid. Line 1, position 1. (se...
Pantry asked 30/7, 2013 at 12:38
0
I'm switching from Newtonsoft.Json to System.Text.Json in a .net Core 3.1 web api project. The project is a legacy .net core web api project with hundreds of clients. Some of the controller endpoin...
Quean asked 8/10, 2020 at 11:46
3
Solved
Im trying to create a xml the should look like this
<?xml version="1.0" encoding="iso-8859-1"?>
<MyTestSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.o...
Sihunn asked 27/5, 2010 at 10:7
5
Solved
I understand that remarks tag is used to provide additional information about the class but it is not displayed in intellisense while hovering / calling that class. I would like to know Where exact...
Pharmaceutics asked 29/5, 2016 at 7:29
5
Solved
i have that xml file :
<?xml version="1.0" encoding="utf-8"?>
<reminders>
<reminder>
<Title>Alarm1</Title>
<Description>Desc1</Description>
<Time&g...
Glasser asked 8/3, 2012 at 10:29
7
Solved
Currently I have the following code:
XmlDocument xDoc = new XmlDocument();
xDoc.Load("http://api.twitter.com/1/statuses/user_timeline.xml?screen_name=twitter");
XmlNodeList tweets = xDoc.GetEleme...
Abixah asked 7/8, 2012 at 14:15
6
Solved
I am using XDocument.Validate (it seems to function the same as XmlDocument.Validate) to validate an XML document against an XSD - this works well and I am informed of validation errors.
However, ...
Caustic asked 3/2, 2013 at 21:42
4
How can I change an attribute of an element in an XML file, using C#?
Yacht asked 15/12, 2008 at 8:2
4
Solved
I'm loading a string into an XML document that contains the following structure:
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://s...
Orin asked 13/11, 2010 at 7:26
1
Solved
I have the following code:
string PathName = "C:\\Users\\TestUser\\Documents\\Project";
string FileName = "settings.xml";
XmlDocument Settings = new XmlDocument();
Settings.Load(Path.Combine(Pat...
Recursion asked 23/7, 2017 at 22:34
3
Solved
I have a Winform project, created on Microsoft Framework 3.5.
The users may have installed Windows 7 or Windows XP, and Office 2007 or above.
I'm working on in a procedure to get the clipboard da...
Almanza asked 4/5, 2017 at 21:53
1
Solved
Before I get jumped on by people saying the XML parser shouldn’t care if the elements are empty or self-closed, there is a reason why I can’t allow self-closed XML elements. The reason is that I’m ...
Factual asked 22/3, 2017 at 18:31
1 Next >
© 2022 - 2024 — McMap. All rights reserved.