all groups > dotnet xml > november 2005 > threads for november 8 - 14, 2005
Filter by week: 1 2 3 4 5
xsi:schemaLocation in xmldatadocument class
Posted by jean at 11/14/2005 4:44:02 PM
I am creating an xmldatadocument from an acess database with visual basic.
Here is the header code I am using:
Dim xmldcl As XmlDeclaration = myDoc.CreateXmlDeclaration("1.0", "UTF-8",
"yes")
Dim newElem As XmlElement = myDoc.CreateElement("sender")
newElem.SetAttribute("sc... more >>
Decreasing size of XMLSerilaized Payload
Posted by Dirc at 11/14/2005 11:49:08 AM
Does anyone have any tips/hints for reducing the size of the XML produced?
I can think of a couple:
1. Use XmlAttributeAttribute to save space
2. Used XmlIgnore for properties that are calculated rather than reference
private fields.
... more >>
xpath search by LocalName
Posted by Paul at 11/14/2005 8:55:18 AM
Does anyone have an idea how to retrieve all nodes in an XmlDocument where
the LocalName is equal to some string?
... more >>
Best wa to Read, Write/Create XML-Files
Posted by ezmeralda NO[at]SPAM gmx.de at 11/13/2005 1:21:15 PM
Hello,
I have to solve the following task:
- create an editor-application in c# to read, modify and create
xml-files
- .xsd-schema-file is available and can be used
Currently, I am thinking of the following way to do the job:
- use xsd.exe to create basic c#-classes from xsd.file (modify t... more >>
problem with XmlDocument.Load Method (Stream)
Posted by Foo at 11/12/2005 11:33:20 PM
Hi
I have a problem, while retrieving xml data through network. I use
Load(Stream) method for this, but this doesn't work:
NetworkStream ns = client.GetStream();
StreamReader sreader = new StreamReader(ns);
XmlDocument xmldoc = new XmlDocument();
xmldoc.Load(sreader);
Everything goes rig... more >>
XslTransform - Receiving 'System.Xml.Xsl.XsltException: Missing mandatory attribute 'version'
Posted by KJS at 11/12/2005 8:17:46 PM
Hello,
I'm receiving:
'System.Xml.Xsl.XsltException: Missing mandatory attribute 'version'
After I try and run my transformation. I spent a good few days coming
up with the appropriate (I think) methods, and overrides for this task.
I have verified that the source XML and XSL will transform... more >>
Etherreal not capturing calls to localhost
Posted by Jeff User at 11/12/2005 12:00:00 AM
Hello
I have been using Ethereal to capture and view the XML messages being
passed back and forth from my web service client to my web service.
When calling the service over the internet, I choose my network card
connection to the internet in Ethereal and it captures all the traffic
back and... more >>
XmlDocument Performace & XmlWriter namespace oddity
Posted by David Grogan at 11/11/2005 10:42:06 AM
Hi, 2 questions....
1. I'm parsing an XHTML document that contains both the default namespace
(xmlns="http://www.w3.org/1999/xhtml") and a custom one (xmlns:r="...") -
both of these being attributes of <html>. When I then insert new XmlNodes
into the DOM the HTML tags all end up getting an ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
xpath
Posted by orit at 11/11/2005 2:36:06 AM
Here is my xml:
<?xml version="1.0" encoding="utf-8" ?>
<course id="2555" title="Developing Microsoft .NET Applications for Windows
(Visual C# .NET)" length="5 days"
source="http://www.microsoft.com/learning/syllabi/en-us/2555Afinal.mspx">
<module id="1" title="Introducing Windows Forms"
... more >>
RemoveNode
Posted by Scott at 11/10/2005 2:18:04 PM
What is the fastest way to do the following, using System.xml v2.0?
System.Xml.XmlDocument document = new System.Xml.XmlDocument();
document.Load(@"test.xml");
System.Xml.XmlNodeList Nodes = document.SelectNodes("xml/foo/bar");
foreach (System.Xml.XmlNode Node in Nodes) {
Node.ParentNode.R... more >>
Request.InputStream to multiple xmlreaders
Posted by Charles.Deisler NO[at]SPAM gmail.com at 11/10/2005 10:42:21 AM
XmlTextReader requestdata = new XmlTextReader(Request.InputStream);
XmlTextWriter xmltextwriter = new XmlTextWriter(somefile,someencoding);
XmlTextWriter xmltextwriter2 = new
XmlTextWriter(somefile2,someencoding);
xmltextwriter.WriteNode(requestdata, false);
// i want to write to another writ... more >>
Migrating XSL stylsheets with msxsl:script from MSXML4 to System.X
Posted by Eugen Gulinsky at 11/10/2005 10:19:03 AM
Hello guys,
I am having problems trying to migrate our MSXML4-compatible stylesheets
containing large msxsl:script blocks to a formate understandable by
System.Xml:Xsl.XslTransform. I keep getting JS1135 errors saying that some
variable was not declared. This scripts worked perfectly with M... more >>
Writing XML from Dataset to Response Object as Binary File
Posted by Hanover at 11/10/2005 8:56:36 AM
I have looked fot his solution, but Im not sure what to search for.
I have an asp.net based report. I need the user to be able to download
an XML file of the results so they can use the data in Excel, etc.
I do NOT want to write the file to the server first. I just want to be
able to write... more >>
XmlSerializer and ISerializable
Posted by Paul at 11/10/2005 6:38:04 AM
Can I control XmlSerializer's serialization/deserialization process by
implementing ISerializable on the class I'm serializing? I'm doing exactly
this with the SoapFormatter and I was wondering if it is the same for the
XmlSerializer.
... more >>
XmlReader to XmlTextWriter without XmlDocument
Posted by Charles.Deisler NO[at]SPAM gmail.com at 11/9/2005 9:52:55 PM
Im currently using the following code..
XmlDocument xmlData = new XmlDocument();
XmlTextWriter xmlwriter = new
XmlTextWriter(Response.OutputStream,System.Text.Encoding.UTF8);
XmlReader xmlreader = SqlHelper.ExecuteXmlReader(...)
xmlData.Load(xmlreader);
xmlData.WriteTo(xmlwriter);
xmlwriter... more >>
SoapFormatter to XmlSerializer conversion
Posted by Paul at 11/9/2005 1:21:27 PM
We currently persist our objects to xml/soap files using a SoapFormatter.
We control the serialization and de-serialization by implementing the
ISerializable and its two interface methods, namely, GetObjectData and a
constructor that takes two arguments (a SerializationInfo object and a
Stre... more >>
Getting to an attribute.
Posted by Robert Strickland at 11/8/2005 7:52:02 PM
I have a service that I call that returns back a XmlNode type. I need to get
to an attribute value and would like to use the GetAttribute method (because
it takes a string). However, XmlNode (or XmlElement) does not have that
method. They have the attributes collection with the item method th... more >>
Writing on app.config
Posted by Daniel Caetano at 11/8/2005 9:57:01 AM
Is that possible change attributes values that belong the app.config?
Example i want to change the
<ConfigProvider> encrypted="true" to "false".
Can somebody help me???
... more >>
HELP? Having some problems with XML Serialization...
Posted by n8wei at 11/8/2005 6:58:04 AM
Hi,
I seem to be having a bit of a problem serializing a complex object into
XML. I've done this many times with simpler objects and it's always worked
just fine.
The error I'm getting is the natorious "File or assembly name
[asciijunk].dll, or one of its dependencies was not found. ... more >>
|