What do you want to save?
Add Code snippet
New code examples
-
Html 2021-10-13 23:36:13
htmlagility treeview
HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument(); doc.LoadHtml(html); TreeNode root = new TreeNode("HTML"); treeView1.Nodes.Add(root); LoadTree(root, doc.DocumentNode); void LoadTree(TreeNode treeNode, HtmlAgilityPack.Htm... Add solution -
Javascript 2021-10-13 20:28:03
js paste event
const target = document.querySelector('div.target'); target.addEventListener('paste', (event) => { let paste = (event.clipboardData || window.clipboardData).getData('text'); paste = paste.toUpperCase(); const selection = window.getSelect... Add solution -
C# 2021-10-08 13:09:06
c# generate xml from xsd at runtime
public XmlDocument GenerateEmptyPdfTemplate(GenerateEmptyPdfTemplateDto generateEmptyPdfTemplateDto) { XmlDocument doc = new XmlDocument(); XmlSchemaSet schemaSet = new XmlSchemaSet(); // generateEmptyPdfTemplateDto.XsdDocument <--string xsd s... Add solution -
C# 2021-10-06 16:56:06
get attribute value of xml element c#
string name; XmlDocument xml = new XmlDocument(); xml.Load("theFile.xml"); // Or any other method to load your xml data in the XmlDocument. // For example if your xml data are in a string, use the LoadXml method. XmlElement elt = xml.SelectSing... Add solution -
Other 2021-10-05 15:04:06
jave write xml file
package com.javacodegeeks.java.core; import java.io.File; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import javax.xml.transform.Transformer; impo... Add solution -
Other 2021-10-05 12:01:03
Replacing text with table using google script
function searchTextReplTable(texttofind){ var doc=DocumentApp.getActiveDocument(); var body=doc.getBody(); var rgel=body.findText(texttofind); var element=rgel.getElement(); var childIndex=body.getChildIndex(element.getParent()); var t=[];//Th... Add solution -
Java 2021-09-17 09:11:02
cpp live code
package devmedia; import java.io.FileOutputStream; import java.io.IOException; import com.itextpdf.text.Document; import com.itextpdf.text.DocumentException; import com.itextpdf.text.Paragraph; import com.itextpdf.text.pdf.PdfWriter; public class Genera... Add solution -
C# 2021-09-09 07:53:04
method to retrieve elements from xml c#
using System; using System.IO; using System.Xml; public class Sample { public static void Main() { //Create the XmlDocument. XmlDocument doc = new XmlDocument(); doc.Load("books.xml"); //Display all the book titles. Xml... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5