Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

string to xml c#

string test = "<body><head>test header</head></body>";

XmlDocument xmltest = new XmlDocument();
xmltest.LoadXml(test);

XmlNodeList elemlist = xmltest.GetElementsByTagName("head");

string result = elemlist[0].InnerXml; 

//result -> "test header"
Comment

PREVIOUS NEXT
Code Example
Java :: linked list sorting in java 
Java :: convert date to calendar java 
Java :: how to programitically remove action bar from an activity in android studio 
Java :: java switch 
Java :: java int length 
Java :: org.mockito.exceptions.misusing.WrongTypeOfReturnValue 
Java :: java pre increment 
Java :: android studio fab icon color 
Java :: how to remove components from a JFRame java 
Java :: anagram java program 
Java :: java for loop 
Java :: abstract vs final 
Java :: How to convert timestamp to time in android studio 
Java :: how to change maven java version in po, 
Java :: font type javafx button css 
Java :: static and final in java 
Java :: how-to-check-internet-connection-in-android 
Java :: java output 
Java :: spigot respawn player location 
Java :: test if string is float java 
Java :: android studio textbox change text 
Java :: java filedialog 
Java :: java foreach map 
Java :: get random word from list java 
Java :: sum of 1D array(JAVA) 
Java :: i have AdoptOpenJDK 8 but java --version gettinbg Unrecognized option: --version Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. 
Java :: How to efficiently find three largest numbers of array, in Java? 
Java :: how to catch enter key in java text field 
Java :: java selenium send keys integer 
Java :: circular textview android 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =