Format:
Recent snippets matching tags of XML
public sealed partial class BlankPage : Page { public BlankPage() { this.InitializeComponent(); var _String = "<special:Users xmlns:special='http://jerry'><User Key='1' Name='Jerry' /><User Key='2' Name='Michael' /></special:Users>"; using (var _Reader = System.Xml.XmlReader.Create(new StringReader(_String))) { var _Serializer = new System.Xml.Serialization.XmlSerializer(typeof(Users));
12 Views
no comments
const string KEY = "MyUniqueKey"; private void SaveButton_Click(object sender, EventArgs e) { var _Store = IsolatedStorageFile.GetUserStoreForApplication(); using (var _Stream = new IsolatedStorageFileStream(KEY, FileMode.Create, _Store)) { var _Data = MyTextBox.Text; var _Serializer = new XmlSerializer(typeof(string));
69 Views
no comments
<?xml version="1.0" encoding="utf-8"?> <manifest> <uses-permission /> <permission /> <permission-tree /> <permission-group /> <instrumentation /> <uses-sdk />
80 Views
1 comments
//-----------------------------------------------------------------------------\\ //---------------- Methods to access XML files using java -----------------\\ //------ based on the simple example file: http://codepaste.net/8joo9z --------\\ //-----------------------------------------------------------------------------\\ public class xmlAccessor { // print a list of all users, optionally this may be useful to return a collection of users... public void printUsers() {
92 Views
no comments
<?xml version="1.0"?> <users> <user> <firstname>Hans</firstname> <lastname>Meyer</lastname> <alias>Hans</alias> <password>test</password> <computerName>Johannes-WinMBA</computerName> <lastLogin>test</lastLogin> </user>
111 Views
no comments
////////////////////////////////////////////////////////////////////////////////////////////////////////// // Create the query var custs = from c in XElement.Load("Customers.xml").Elements("Customers") select c ; // Execute the query foreach (var customer in custs)
114 Views
no comments
public XElement GetXElementFromXmlElement(XmlElement xmlElement)
{
return XElement.Load(xmlElement.CreateNavigator().ReadSubtree());
}
105 Views
no comments
using System; using System.Collections.Generic; using System.Xml.Linq; using FizzWare.NBuilder; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Tests.Reporting { [TestClass] public class DynamicXmlFormatting
163 Views
no comments
/// <summary> /// Load all persons from file on disk. /// </summary> public List<Person> Load(string fileName) { try { using (StreamReader reader = new StreamReader(fileName)) { XmlSerializer serializer = new XmlSerializer(typeof(List<Person>));
118 Views
no comments
/// <summary> /// Serialize anything /// </summary> /// <param name="serializeMe"></param> /// <returns></returns> public static string Serialize<T>(T serializeMe) { var serializer = new XmlSerializer(serializeMe.GetType()); var ms = new MemoryStream(); serializer.Serialize(ms, serializeMe);
110 Views
no comments
[System.Runtime.Serialization.DataMemberAttribute()]
public Moneycorp.Gateway.EntityReference Client
{
get
{
return this.ClientField;
}
set
{
if ((object.ReferenceEquals(this.ClientField, value) != true))
110 Views
no comments
<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"> <url> <loc>http://forevony.com/buy/index.php?main_page=document_general_info&cPath=63&products_id=181</loc> <lastmod>2010-03-20T22:18:04Z</lastmod> <changefreq>weekly</changefreq> <priority>0.5</priority> </url> <url> <loc>http://forevony.com/buy/index.php?main_page=index</loc>
293 Views
no comments
'Form1.vb #Region " Import Declaratives " Imports DevExpress.XtraEditors Imports DevExpress.Utils.Menu Imports System.IO Imports System.Xml.Serialization #End Region
2631 Views
no comments
// Sample XML File <?xml version="1.0" encoding="utf-8" ?> <Girls> <Girl> <Name>Camilla Belle</Name> <DateOfBirth>October 2, 1986</DateOfBirth> </Girl> <Girl> <Name>Megan Fox</Name>
148 Views
no comments
<Node> <ID>123</ID> <Name>ABC</Name> </Node> <Node1> <ID>124</ID> <Name>DEF</Name> </Node1>
254 Views
no comments
Module Module1 Sub Main() Dim InputXml = <?xml version="1.0" encoding="utf-8"?> <users> <user id="1" name="Eduardo"/> <user id="2" name="Luciano"/> <user id="3" name="Ricardo"/> </users>
378 Views
no comments
<?xml version="1.0" encoding="utf-8"?> <Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner"> <DataSources> <DataSource Name="DummyDataSource"> <rd:DataSourceID>0548d639-2bfb-43c4-894a-255a4657cc64</rd:DataSourceID> <ConnectionProperties> <DataProvider>SQL</DataProvider> <ConnectString /> </ConnectionProperties> </DataSource>
1766 Views
no comments
#include wconnect.h SET PROCEDURE TO wwXmlState.prg ADDITIVE #IF .F. && Sample code CLEAR oState = CREATEOBJECT("wwXMLState") oState.LoadXML(FULLPATH( "test.xml"),.T.)
621 Views
2 comments
namespace SignAndEncryptXmlDocumentConsoleApplication { using System; using System.IO; using System.Security.Cryptography; using System.Security.Cryptography.Xml; using System.Xml; class Program {
669 Views
no comments
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Linq.Expressions;
217 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
