Skip to main content

All Questions

Tagged with
-1 votes
1 answer
41 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
-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
0 votes
3 answers
78 views

Selecting 2 Elements from XML

I am having a lot of trouble translating examples I am finding into use with XML. Starting with this (a very cut down version of the whole XML file) <?xml version="1.0" encoding="UTF-...
jc508's user avatar
  • 93
0 votes
1 answer
55 views

How to access a XML Parent Attribute with LINQ in C#

I cant seem to get the Linq syntax correct - or I dont know how to reference XML objects. I have XML like <?xml version="1.0" encoding="UTF-8"?> <Targets> <...
jc508's user avatar
  • 93
0 votes
1 answer
30 views

LINQ returning null for some xml read

My xml read with linq used to work great, but I recently changed my xml (the team wanted flatter xml), and the format is like this now: <?xml version="1.0" encoding="UTF-8"?> ...
Michele's user avatar
  • 3,797
0 votes
1 answer
33 views

Serialize an xElement with namespaces and text values

This is the first time I've used System.Xml.Linq to serialize. I have learned many things especially on this site, but now I can't solve a problem, perhaps trivial, but I can't. I need to create this ...
Modest's user avatar
  • 13
0 votes
1 answer
59 views

Reading xml into LINQ format to check against log file data - Conditions in list format - linq not picking up reformated xml

I have a project that reads xml of expected build results for each build area, and compares against build logs to see if the build passed. Right now, the linq is showing each condition in a separate ...
Michele's user avatar
  • 3,797
0 votes
1 answer
40 views

ANDing conditions for XML data using LINQ

I have XML data that looks like this (simplified) <customer> <id>01</id> <name>John</name> <discount id='plumb' /> <discount id='lumber' /> </...
Jedi Commymullah's user avatar
0 votes
2 answers
88 views

Getting wrong filename, cName, cValue from xml extracted using linq

I have a project that reads xml of expected build results for each build area, and compares against build logs to see if the build passed. The xml does not look like it's reading correctly. Does ...
Michele's user avatar
  • 3,797
0 votes
1 answer
44 views

How do I preserve attributes on multiline XML formatting with XDocument?

I'm working on XML to edit attributes and values. I have an XML node in this format. <add attribute1="value" attribute2="ghjg" attribute3="ghjg" ...
saqibhaneef's user avatar
0 votes
1 answer
30 views

Getting attribute from xml and printing it error

I'm trying to retrieve attribute values from my xml using c# and linq. The attribute data is blank when I print it. Any help would be greatly appreciated. Other than retrieving the attribute values, ...
Michele's user avatar
  • 3,797
0 votes
2 answers
85 views

linq issue accessing deep xml data

I'm trying to access xml data that's deep in an xml file with linq. I've been looking at these examples: linq linq I'm not seeing a good example that doesn't involve names. mid-question Update: ...
Michele's user avatar
  • 3,797
0 votes
0 answers
39 views

remove white-space after last attribute before closing tag in xml file [duplicate]

I need to put data in attributes in xml element, but I don't need this whitespace between " and />. How can I remove this whitespace? <Organization Name="1" ContractDate="...
igoose87's user avatar
0 votes
1 answer
49 views

How to remove a parent element if a child is not present

xml = @"<root> <SUB-ELEMENT> <SHORT-NAME>SCB1</SHORT-NAME> <B-C> <S-C> <C-P-R DEST="S-A">MC_Path</C-P-R> &...
Arun Raj's user avatar
0 votes
2 answers
45 views

I have to find an XML Element depending if there is a specific Element in that Element

I have this XML-File: <children xmi:type="notation:General" xmi:id="1"> <children xmi:type="notation:Shape" xmi:id="2"> <element xmi:type=&...
KeepGoing's user avatar

15 30 50 per page
1
2 3 4 5
244