Questions tagged [innerxml]

A property of the Document Object Model (DOM) that gets or sets the inner XML of the child nodes of a node. This is an extension of the Microsoft implementation of DOM.

13 questions
154
votes
14 answers

Best way to get InnerXml of an XElement?

What's the best way to get the contents of the mixed body element in the code below? The element might contain either XHTML or text, but I just want its contents in string form. The XmlElement type has the InnerXml property which is exactly what…
Mike Powell
  • 5,914
  • 4
  • 28
  • 28
11
votes
11 answers

PHP SimpleXML get innerXML

I need to get the HTML contents of answer in this bit of XML: Who are you? Who who, who who, me So I want to get the string "Who who, who who,…
Bart van Heukelom
  • 43,244
  • 59
  • 186
  • 301
6
votes
1 answer

XmlNode InnerXml vs OuterXml

I've come across a bizarre situation and I'm hoping that someone who understands better than I do can help me to resolve it. I'm inserting an image into an Xml document such that it can be opened with Microsoft Word. As part of this, I need to add…
user1711233
  • 251
  • 1
  • 8
  • 16
2
votes
1 answer

Batch Update (Error Code 0x81020016)

I have used webservices to Update Sharepoint list. I am using Network Credentials to access remort server. mylist.Credentials = new NetworkCredential(_username, _password, _domain); here is my innerXml code: StringBuilder innerXml = new…
devan
  • 1,643
  • 8
  • 37
  • 62
1
vote
5 answers

C# split xml innertext or parse innerxml

I have an XML file with a structure similar to this aaa bbb ccc
user5019819
  • 63
  • 1
  • 1
  • 11
1
vote
0 answers

How to get "innerContent" with DOMdocument?

I need something like InnerHTML of a node, it is very simple, and perhaps I am not knowing how to use childNodes... I need some function that receives a node (DOMElement or DOMNode) with a root, and outputs the (DOM-XML object or XML-string value)…
Peter Krauss
  • 13,174
  • 24
  • 167
  • 304
0
votes
2 answers

XPathSelectElement("/root/title").ToString() selects also the xml name around

When I do XPathSelectElement("/root/title").ToString() I get for example this is an <strong>example</strong>. But I don't want to get around the text. When I do XPathSelectElement("/root/title").Value then it gets only the…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c#" class="post-tag grid--cell" title="show questions tagged 'c#'" rel="tag">c#</a> <a href="../../questions/tagged/dom" class="post-tag grid--cell" title="show questions tagged 'dom'" rel="tag">dom</a> <a href="../../questions/tagged/innerxml" class="post-tag grid--cell" title="show questions tagged 'innerxml'" rel="tag">innerxml</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Apr 19 '11 at 09:19">asked Apr 19 '11 at 09:19</time> <a href="../../users/714886/ozkan" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/714886.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Ozkan" /> </a> <div class="s-user-card--info"> <a href="../../users/714886/ozkan" class="s-user-card--link">Ozkan</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">2,011</li> <li class="s-award-bling s-award-bling__gold" title="6 gold badges">6</li> <li class="s-award-bling s-award-bling__silver" title="29 silver badges">29</li> <li class="s-award-bling s-award-bling__bronze" title="43 bronze badges">43</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-52169968"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>0</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/52169968/unable-to-print-inner-xml-values-using-powershell" class="question-hyperlink">Unable to print inner XML values using PowerShell</a></h3> <div class="excerpt">I am trying to retrieve data from a SOAP web service using PowerShell. I am having issues retrieving values from the inner XML. The code is listed below. In the [XML]$body2 variable if I pass the $queryid variable then the values in the else…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/powershell" class="post-tag grid--cell" title="show questions tagged 'powershell'" rel="tag">powershell</a> <a href="../../questions/tagged/web-services" class="post-tag grid--cell" title="show questions tagged 'web-services'" rel="tag">web-services</a> <a href="../../questions/tagged/innerxml" class="post-tag grid--cell" title="show questions tagged 'innerxml'" rel="tag">innerxml</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Sep 04 '18 at 15:46">asked Sep 04 '18 at 15:46</time> <a href="../../users/2149838/user2149838" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/2149838.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="user2149838" /> </a> <div class="s-user-card--info"> <a href="../../users/2149838/user2149838" class="s-user-card--link">user2149838</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">49</li> <li class="s-award-bling s-award-bling__gold" title="1 gold badge">1</li> <li class="s-award-bling s-award-bling__silver" title="1 silver badge">1</li> <li class="s-award-bling s-award-bling__bronze" title="8 bronze badge">8</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-43179179"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/43179179/innertext-xmlnode-c" class="question-hyperlink">InnerText XmlNode C#</a></h3> <div class="excerpt">I am trying to create an XMLDocument in C#. This is the file that I am trying to parse. <root> <child/> some text here </root> However, when I try to assign the "some text here" to the element, I run into a problem. In the beginning I have the…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c#" class="post-tag grid--cell" title="show questions tagged 'c#'" rel="tag">c#</a> <a href="../../questions/tagged/xml" class="post-tag grid--cell" title="show questions tagged 'xml'" rel="tag">xml</a> <a href="../../questions/tagged/innertext" class="post-tag grid--cell" title="show questions tagged 'innertext'" rel="tag">innertext</a> <a href="../../questions/tagged/innerxml" class="post-tag grid--cell" title="show questions tagged 'innerxml'" rel="tag">innerxml</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Apr 03 '17 at 07:46">asked Apr 03 '17 at 07:46</time> <a href="../../users/5558143/monicas" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/5558143.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="MonicaS" /> </a> <div class="s-user-card--info"> <a href="../../users/5558143/monicas" class="s-user-card--link">MonicaS</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">155</li> <li class="s-award-bling s-award-bling__gold" title="1 gold badge">1</li> <li class="s-award-bling s-award-bling__silver" title="3 silver badge">3</li> <li class="s-award-bling s-award-bling__bronze" title="18 bronze badge">18</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-3760964"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/3760964/setting-innerxml-for-xmldocument-causes-missing-end-tag" class="question-hyperlink">Setting InnerXml for XmlDocument causes missing End-Tag</a></h3> <div class="excerpt"> XmlDocument doc = new XmlDocument(); doc.AppendChild(doc.CreateElement("Foo")); doc.DocumentElement.InnerXml = "Test"; StringBuilder result = new StringBuilder(); …</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c#" class="post-tag grid--cell" title="show questions tagged 'c#'" rel="tag">c#</a> <a href="../../questions/tagged/.net" class="post-tag grid--cell" title="show questions tagged '.net'" rel="tag">.net</a> <a href="../../questions/tagged/xml" class="post-tag grid--cell" title="show questions tagged 'xml'" rel="tag">xml</a> <a href="../../questions/tagged/xmldocument" class="post-tag grid--cell" title="show questions tagged 'xmldocument'" rel="tag">xmldocument</a> <a href="../../questions/tagged/innerxml" class="post-tag grid--cell" title="show questions tagged 'innerxml'" rel="tag">innerxml</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Sep 21 '10 at 13:50">asked Sep 21 '10 at 13:50</time> <a href="../../users/44952/codymanix" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/44952.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="codymanix" /> </a> <div class="s-user-card--info"> <a href="../../users/44952/codymanix" class="s-user-card--link">codymanix</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">28,510</li> <li class="s-award-bling s-award-bling__gold" title="21 gold badges">21</li> <li class="s-award-bling s-award-bling__silver" title="92 silver badges">92</li> <li class="s-award-bling s-award-bling__bronze" title="151 bronze badges">151</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-23420436"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/23420436/get-entire-node-xml-rather-than-innerxml" class="question-hyperlink">Get entire node XML rather than InnerXml</a></h3> <div class="excerpt">Given the following XML: <Root> <Item id="1"> <name>Foo</name> <status>Active</status> </Item> <Item id="2"> <name>Bar</name> <status>Inactive</status> </Item> </Root> Let's say I have this XML in an XmlDocument object and…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c#" class="post-tag grid--cell" title="show questions tagged 'c#'" rel="tag">c#</a> <a href="../../questions/tagged/xml" class="post-tag grid--cell" title="show questions tagged 'xml'" rel="tag">xml</a> <a href="../../questions/tagged/xmldocument" class="post-tag grid--cell" title="show questions tagged 'xmldocument'" rel="tag">xmldocument</a> <a href="../../questions/tagged/innerxml" class="post-tag grid--cell" title="show questions tagged 'innerxml'" rel="tag">innerxml</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked May 02 '14 at 03:53">asked May 02 '14 at 03:53</time> <a href="../../users/1024920/citrus" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1024920.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Citrus" /> </a> <div class="s-user-card--info"> <a href="../../users/1024920/citrus" class="s-user-card--link">Citrus</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">756</li> <li class="s-award-bling s-award-bling__gold" title="1 gold badge">1</li> <li class="s-award-bling s-award-bling__silver" title="13 silver badge">13</li> <li class="s-award-bling s-award-bling__bronze" title="26 bronze badge">26</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-23362890"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/23362890/how-to-use-the-value-of-inner-xml-of-an-xml-node-in-c" class="question-hyperlink">How to use the value of inner xml of an xml node in c#</a></h3> <div class="excerpt">i have an xmlnode node2. XmlNode node2 = sm.UploadXML(xmlFile); In this node2,node2.innerxml contains the following. <ContractName>Company Name -…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c#" class="post-tag grid--cell" title="show questions tagged 'c#'" rel="tag">c#</a> <a href="../../questions/tagged/xmlnode" class="post-tag grid--cell" title="show questions tagged 'xmlnode'" rel="tag">xmlnode</a> <a href="../../questions/tagged/innerxml" class="post-tag grid--cell" title="show questions tagged 'innerxml'" rel="tag">innerxml</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Apr 29 '14 at 11:06">asked Apr 29 '14 at 11:06</time> <a href="../../users/3191619/sindhu-jampani" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/3191619.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="sindhu jampani" /> </a> <div class="s-user-card--info"> <a href="../../users/3191619/sindhu-jampani" class="s-user-card--link">sindhu jampani</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">504</li> <li class="s-award-bling s-award-bling__gold" title="3 gold badges">3</li> <li class="s-award-bling s-award-bling__silver" title="10 silver badges">10</li> <li class="s-award-bling s-award-bling__bronze" title="30 bronze badges">30</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-11391339"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/11391339/recursively-access-datatable-and-input-to-innerxml-query" class="question-hyperlink">Recursively access DataTable and input to InnerXml query</a></h3> <div class="excerpt">I have DataTable in my application. It holds DataColumns and Rows. I just want to call it recursively and input to InnerXml query. here Field names should be DataColumns values and Value should be Row value of DataTable. Bellow is my tried code. But…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c#" class="post-tag grid--cell" title="show questions tagged 'c#'" rel="tag">c#</a> <a href="../../questions/tagged/batch-file" class="post-tag grid--cell" title="show questions tagged 'batch-file'" rel="tag">batch-file</a> <a href="../../questions/tagged/datatable" class="post-tag grid--cell" title="show questions tagged 'datatable'" rel="tag">datatable</a> <a href="../../questions/tagged/innerxml" class="post-tag grid--cell" title="show questions tagged 'innerxml'" rel="tag">innerxml</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jul 09 '12 at 08:20">asked Jul 09 '12 at 08:20</time> <a href="../../users/596770/devan" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/596770.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="devan" /> </a> <div class="s-user-card--info"> <a href="../../users/596770/devan" class="s-user-card--link">devan</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1,643</li> <li class="s-award-bling s-award-bling__gold" title="8 gold badges">8</li> <li class="s-award-bling s-award-bling__silver" title="37 silver badges">37</li> <li class="s-award-bling s-award-bling__bronze" title="62 bronze badges">62</li> </ul> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script src="../../static/js/fromnow.js"></script> </body> </html>