Questions tagged [xmlnode]

XML document unit (element, entity, attribute, text, comment, notation, even document or it's fragment).

XML document unit (element, entity, attribute, text, comment, notation, even document or it's fragment). XML node types

486 questions
5
votes
3 answers

Compare two XmlNodes in C#

Is there a simple way to compare two XML structures to determine if they have the same structure and data? I have a function that returns an XmlNode and I am trying to write unit tests for it. I store the correct XML result in a file. Durring the…
oillio
  • 4,748
  • 5
  • 31
  • 37
5
votes
3 answers

XML - How to grab child nodes in single node and not whole document?

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 A
chilly8063
  • 117
  • 2
  • 3
  • 8
4
votes
1 answer

how to use xpath in camel-context.xml to check if a particular node is exist or not

I am trying to develop a content-based routing camel application. This application will look at the folder src/data to see if there is a SOAP request file that has node , then that file will be copy into target/message,…
David
  • 3,538
  • 9
  • 39
  • 50
4
votes
2 answers

XSLT function to get xpath to a node

I need a XSLT function which will return me the xpath to the node from which it called. XML
rohit
  • 953
  • 5
  • 15
  • 31
4
votes
2 answers

How to modify XML node value?

I am new developer in java application. I would like to modify an XML file node value. I have used an xml file for modify as follows yong mook kim
prasad.gai
  • 2,977
  • 10
  • 58
  • 93
4
votes
1 answer

Webservice method return XmlDocument, Reference sees a XmlNode

I've faced a problem I can't solve that's why I beg you to help me! I'm working with a WebService and I'm trying to return a XmlDocument from a WebService method called GetSystemDocument which looks like : [WebMethod(Description = "blabla")] …
David
  • 1,101
  • 5
  • 19
  • 38
4
votes
2 answers

Avoid reloading all XML data for each repeater - vb.net

I am trying to place a repeater within a repeater using xml data. I have it working exactly as I want, but the method I have used reloads the data for each repeater. I think I need to cast as an XmlNode but I'll be honest - I have no idea where to…
Tom
  • 12,776
  • 48
  • 145
  • 240
4
votes
3 answers

How can i select specific childnodes with LINQ?

I have a node and this node contains 5 childnodes. three of them is RatePlan. How can i select those RatePlan childnodes with LINQ? Lets clarify something : my xml is like this :
Erkan BALABAN
  • 1,347
  • 1
  • 13
  • 20
4
votes
4 answers

How to get all child nodes of an XML in C#

I've an XML document like this: A 100 C 300 C1
1teamsah
  • 1,863
  • 3
  • 23
  • 43
4
votes
1 answer

SQL Server append XML child nodes to parent node

I need to have a script which can insert / append new xml child nodes to a pre-existing xml parent node. --New child nodes DECLARE @XMLChildData XML SET @XMLChildData = ' Gary
user3917837
  • 43
  • 1
  • 4
4
votes
3 answers

XSLT - In predicate filters, why must one sometime use the XSLT current() function rather than the XPath context node dot operator?

In a predicate filter, I am trying to figure out how best to explain why and when one must use the XSLT current() function rather than the XPath context node . expression. The example given at the w3schools XSLT current() Function page helps only a…
4
votes
4 answers

How to update XML nodes with new values?

I have a xml inside my App_Data folder. I need to edit the values in nodes of that xml. What I had tried is- XmlDocument xDoc = new XmlDocument(); xDoc.Load(Server.MapPath("~/App_Data/conf.xml.config")); XmlNodeList aNodes =…
Sandy
  • 2,429
  • 7
  • 33
  • 63
4
votes
2 answers

Getting node Value of last Child

This question may seem very stupid, but I am not able to find much help on how to find the node value of the last child using PHP, even though it's a piece of cake with JS. This is what my XML currently looks like:
4
votes
2 answers

Has someone run across a way to force PHP SimpleXMLElement node names to upper case?

The API integration documents specify that that all node name are case sensitive. I'm using PHP SimpleXMLElement and I don't see a way to force upper case node names. Has someone run across a way to force node names to upper case? $xmlstr =…
4
votes
1 answer

Load an XmlNodeList into an XmlDocument without looping?

I originally asked this question on RefactorMyCode, but got no responses there... Basically I'm just try to load an XmlNodeList into an XmlDocument and I was wondering if there's a more efficient method than looping. Private Function…
travis
  • 35,751
  • 21
  • 71
  • 94
1 2
3
32 33