|
Is this scenario possible?
|
| |
I've included an xml and a dtd file in my Resources folder (This is a Winforms VB project in VS2005.) I'm planning on using the xml in Resources as a 'template', just load it and change values. The beginning code is: Dim xDoc As New XmlDocument xDoc.LoadXml(My.Resources.Name OfXMLFile) ... do some stuff to XDoc... more »
|
|
Namespaces & Atom feeds
|
| |
I'm new to XML namespaces, and I seem to be missing something obvious in this code snippet, which is trying to retrieve the feed/entry nodes from an XPathNavigator document: XmlNamespaceManager mgr = new XmlNamespaceManager(xpNav.Name Table); mgr.AddNamespace("atom", "[link]");... more »
|
|
Big picture questions - cleanest method for creating an XML file
|
| |
I am not accustomed to creating xml files programmatically. The big picture is this: This will be in VB/VS 2005/ winforms. I have a DTD, a sample XML, and an outside data source I will use to populate the XML. In general I think I know how to create elements and attributes and I'm sure I can hack... more »
|
|
New Fourm on dotnet
|
| |
HI thank you all here is a new fourm on dotnet can post your queries here and get the answers as soon as possible [link]
|
|
Breaking larger xml document into smaller ones
|
| |
Hi All, I have a problem which I think is sure easy enough that it would have been solved already. I am looking for some pointers here - I have an XML document like this: <root> <child> <element1>value1</element1> <element2>value2</element2> </child> <child> <element1>value1</element1>... more »
|
|
Count Nodes
|
| |
I wish to get a count of nodes in an xml file in vb.net, so I am using the following, as a simple example: MyCount = xmlNodePart.Current.Select.//M yNode/Record[*]).Count I saw in some xml specs that instead of [*] it should be [@*], but that does not work. Why would the @ symbol be needed? Derek
|
|
How do I set the utf
|
| |
The following is what I have : XmlWriterSettings xmlSettings = new XmlWriterSettings(); xmlSettings.Indent = true; xmlSettings.IndentChars = " "; xmlSettings.Encoding = System.Text.Encoding.UTF8; StringBuilder sb = new StringBuilder(); using (XmlWriter writer = XmlWriter.Create(sb, xmlSettings)) ============... more »
|
|
|