all groups > dotnet xml > june 2004 > threads for june 15 - 21, 2004
Filter by week: 1 2 3 4 5
Write OpenFileDialog.FileName to XML file
Posted by Koala Beer at 6/21/2004 4:13:47 PM
Hi,
Here is something I can't figure out what I am doing wrong:
I use a OpenFileDialog to select a file. I put the result string from
the FileName property in a textbox on my form. Later on I save the
..Text property to an xml file. Nothing happens, the filename is not
writen to the xml fil... more >>
Flags style enum?
Posted by Keith Hill at 6/21/2004 3:44:24 PM
Is there a way to represent a [Flags] style enum in XML Schema? Say I have
a flags enum like so:
[Flags]
public enum dayOfWeek {
Mon,
Tue,
Wed,
All = Mon | Tue | Wed;
}
I'd like to have my XML be able to use an element attribute like so:
<SomeElement dayOfWeek="Mon|W... more >>
XSLT: Loading Single Image Multiple Times
Posted by Larry Marburger at 6/21/2004 12:06:02 PM
I've built and XSLT that is used to generate a simple TreeView-type,
web-based control (ASP.NET / C#). When the tree is fully transformed
(client-side, JavaScript transformation), there are about 5 different
images that are referenced (page.gif, folder.gif, plus.gif, minus.gif,
and clearpix... more >>
End-of-line Handling in the XmlReader (.NET Framework Version 1.1)
Posted by Matthew Heironimus at 6/21/2004 11:41:10 AM
According to the XML 1.0 (Third Edition) W3C Recommendation =
(http://www.w3.org/TR/2004/REC-xml-20040204/#sec-line-ends) all #xD, =
#xA, and #xD#xA character combinations should be converted to a single =
#xA character.
According to the "Reading XML with the XmlReader" section of the ".NET =
... more >>
xsl question
Posted by Bernie V at 6/19/2004 9:21:53 AM
Hi group,
I use this xsl:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/">
<html>
<body>
<table class="TekstChart" border="1">
<tr>
<th bgcolor="#f5deb3" align="left">Plaat... more >>
XmlValidatingReader and XmlResolver problems
Posted by google NO[at]SPAM bitfurnace.com at 6/19/2004 2:35:05 AM
Hi, I need some help...
Im trying to use XmlValidatingParser with a custom XmlResolver. Im
finding, however, that the custom resolver never gets called, and that
the XmlValidatingParser acts as a non-validating parser
I created a custom resolver called XmlBreakingResolver, whos GetEntity
an... more >>
XmlDocument --> XPathDocument - How
Posted by Ed S at 6/18/2004 2:45:40 PM
Hi All,
I'd like to convert from an XmlDocument to an XPathDocument (without
saving the XmlDocument down to a file - this is a web app). I can't see
any way to do this.
Any help is appreciated.
--Ed... more >>
xsd.exe errors with schemas importing other schemas
Posted by Mike at 6/18/2004 11:19:10 AM
Hi,
I am working with XSD.exe vs.net command line util. I have an XSD that I am trying to use to generate classes with. However, the XSD references another schema and the XSD.exe is having trouble finding the referenced schema. Does anyone have an example of what the command line params would be ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
XSL not working as expected....
Posted by Marc Scheuner [MVP ADSI] at 6/18/2004 8:21:53 AM
Folks,
I'm trying to get something done in XSL and either I'm just missing
some silly thing, or it's not possible to do it.... which is it???
What I'm trying to do is have a XML document that (to some degree)
describes a report - basically, it's a collection of labels and XPath
references o... more >>
Receiving XML Documents
Posted by elguapois NO[at]SPAM yahoo.com at 6/18/2004 7:04:31 AM
Hi,
I'm setting up a service that receives a XML document, validates the
document using a schema and then returns a simple result.
I wanted to ask what the best way is of doing this, that is sending
the xml document. So far I've come across 2 way's:
1. Create a webservice that accepts a ... more >>
Flat File To XML Roundtrip
Posted by gowens NO[at]SPAM nixonpeabody.com at 6/18/2004 6:32:56 AM
OK I'm on a steep learning curve with XML et.al. and need some advice.
I'm writing a B2B front door for a new application. I have multiple
data suppliers all sending various formats of flat files. Most of the
inbound files are CSV (but a couple are tab-delimitted and one is an
Excel spreadshee... more >>
Null elements don't appear in XMLTextWriter results
Posted by AFN at 6/18/2004 1:00:45 AM
I am running the code below to generate XML from a data table. But some
fields in the data table are Null for every record. Suppose field5 has a
null database value. I would expect to see:
<field5></field5> or <field5 />
but instead it doesn't even show the field at all for those r... more >>
Problem with Schema Validations using XmlValidatingReade--HELP
Posted by Rajesh Jain at 6/17/2004 9:04:01 PM
I Have 2 separate schemas.
--------------Schema 1 is defined as below-----------
<xs:schema targetNamespace="http://Schemas/1" xmlns="http://Schemas/1" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="Loan">
<x... more >>
XML serialization of private fields?
Posted by Todd at 6/17/2004 6:31:01 PM
I've seen others with this same dilema but no solutions. Is there a way to serialize an object containing private fields? What about private fields containing complex data structures such as custom collections of custom objects with private fields?
IXmlSerializable?
ISerializable?... more >>
what would the XPATH look like for the node below
Posted by KB at 6/17/2004 5:34:14 PM
Hello,
Everytime I try to get the xmlnode for the document fragment below
system returns nothing...
What would the xpath be for node <Confirmation> ?
Thanks you
KB
code:
Dim xmlnsManager As New System.Xml.XmlNamespaceManager(xmldoc.NameTable)
xmlnsManager.AddNamespace("... more >>
Merging XML Documents XmlTextReader against XmlDocument
Posted by decrypted at 6/17/2004 11:29:08 AM
I wrote some code to save layout of forms in my application to an XML File.
One of the forms has a control which can emit its own layout in the form of
XML....so for this controls, I obviously just want to dump the configuration
from the Control right into a sub node of the control node....crude ... more >>
ConfigXmlDocument Handles Whitespace Improperly
Posted by David B. Bitton at 6/17/2004 10:13:08 AM
It appears as if System.Configuration.ConfigXmlDocument does not handle
whitespace properly. This stems from an issue I am having with
deserializing an XmlNode (which is actually a ConfigXmlElement). If I
compare the InnerXml to a regular XmlElement, things such as newline's and
tabs (\r\n and... more >>
loop using <xsl:for-each> and external javascript function
Posted by jiglu_desai NO[at]SPAM yahoo.com at 6/16/2004 11:41:38 PM
Hi,
I have an xsl as below. I am trying to loop using <xsl:for-each> and
in the select attribute of <xsl:for-each> i am getting the nodeset
from the external javascript function in the <CDATA> section.
This code works fine with MSXML4.0 parser.
When I try to use .Net, it gives me error s... more >>
Serialization with XmlSerializer: how to set the XML root node to something different from <ArrayOfClassname>????
Posted by Bob Rock at 6/16/2004 5:11:27 PM
Hello,
when serializing an array of elements of a class Classname using
XmlSerializer.Serialize() I get an XML like the following:
<?xml version="1.0">
<ArrayOfClassname>
.......
.......
</ArrayOfClassname>
I'd like to be able to set the XML root node to something different from
<Arra... more >>
WSE 2.0- Generating abstract SoapService classes from WSDL
Posted by raj712k at 6/16/2004 12:14:51 PM
WseWsdl2.exe can be used to generate SoapClient classes from the WSDL.
How can we generate abstract classes for WSE 2.0 based web service implementation based on the contracts specified in a WSDL file (just like WSDL.exe). Manually coding the server is not an option as the WSDL file is complex.
... more >>
Test for a nodes existance???
Posted by lyndon hughey at 6/16/2004 6:40:43 AM
I'm having a problem setting the testing for the existance of a nodes
outerxml property. Below I try to test for the existance before I access
the property, but I receive a null exception error. How do i test for the
existance of this property before I use it?
Thanks,
Lyndon
XmlNod... more >>
C# extension functions using MSXML?
Posted by Alfred Taylor at 6/15/2004 10:42:44 AM
I'm having performance/memory problems using .NET's XslTransform class so I
thought I'd give the MSXML object's a whirl.
The question I haven't been able to find in these groups is can I use C#
extension functions with the MSXML objects? More specifically to use a C#
class which has all my ex... more >>
Controlling the order of serialized elements
Posted by markneustadt NO[at]SPAM gmail.com at 6/15/2004 8:04:10 AM
Okay, okay... from what I can find, I'm gonna be out of luck. I also
understand that it *shouldn't* matter but it does. I'm trying to send
some XML to Amazon and they're requiring the nodes to be in a specific
order. I am supposed to send the elements in the following
order:AmazonOrderID, Mer... more >>
Importing XML Schema
Posted by Poonam at 6/15/2004 5:41:10 AM
Hi,
Can some one please help me with (or point me to) a very simple but
working code sample that shows how to import XML Schema.
I have tried many samples out there on internet but nothing seems to be
working. I am trying to import a complex type/simple type element type from
an external ... more >>
XPathNodeIterator bahaviour
Posted by avnrao via .NET 247 at 6/15/2004 3:10:47 AM
Hi,
please clarify this doubt about XPathNodeIterator..the following XSLT uses this..
my doubt is, by looking at the XSLT, i thought the output to be Book1..but the actual output is Book1Book2Book3Book4..
as I understand, func method is called only once and XPathNodeIterator.MoveNext() is c... more >>
|