all groups > dotnet xml > may 2006 > threads for may 15 - 21, 2006
Filter by week: 1 2 3 4 5
Insert XML string into Document
Posted by S Wheeler at 5/19/2006 12:57:50 PM
Hi all -
I need some help trying to insert / append a block of xml text into an xml
document. This is for a reporting app and as new data is available, I must
add it to the end of the document. It should be simple but I cannot seem to
find the magic combo. Here is what I am trying to do:
T... more >>
Transfering XLM files between computers....
Posted by Pilence at 5/19/2006 12:00:00 AM
Hy!!
Can someone tell me please how to do this type of work done by using
C#......
... more >>
How to use form unload event as VB?
Posted by Shuan at 5/19/2006 12:00:00 AM
Hi,
I need to do some thing when program exit or form unload in c# environment.
How can I do it?
Thanks.
... more >>
how to get root element attribute of xml file with c#?
Posted by Shuan at 5/18/2006 12:00:00 AM
Hi,
I have a xml file as follow:
----------------------------------------
<?xml version="1.0" encoding="gb2312"?>
<Mydata date="2006-05-16">
<personalData>
<title>good book</title>
<author>james</author>
<price>58.3</price>
</personalData>
<personalData>
<title>nice ... more >>
Force XMLSerializer to use class namespaces
Posted by ben NO[at]SPAM peikes.com at 5/17/2006 6:40:42 PM
Is there anyway to force the XMLSerializer to use fully qualified
namespaces for when serializing? I was in the midsts of implementing
EnterpriseServices configurations using a file store and
XMLSerialization when I got clubbed over the head by the serializer
because I have two different classes... more >>
Format the file
Posted by nicolas.lelievre NO[at]SPAM gmail.com at 5/17/2006 5:44:18 PM
Hi,
When I serialize my object in an XML file, all the node will be in the
same line.
So, I would like to know if it's possible to format in order to be more
readable.
This is my sample code :
XmlSerializer s = new XmlSerializer();
TextWriter w = new StreamWriter(File);
s.Serialize... more >>
Determine schemas used by document
Posted by Donal McWeeney at 5/17/2006 5:21:17 PM
Hi,
Using .Net 2.0 what is the best way to determine the list of schemas used by
a XmlDocument.
Thanks
Donal
... more >>
WS Proxy generator stripping out XSD annotation and enumerations
Posted by The Man From SQL at 5/17/2006 3:32:02 PM
Hi there,
Here's the problem: our team is working on a web service which formerly
took in two user defined types consisting of mostly simple datatypes.
Recently we decided to move toward an XML schema to define the two types and
the required values to submit rather than having to send .NE... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How can I read an xml file to populate a combobox?
Posted by rperreta at 5/17/2006 1:32:02 PM
I exported a xml file using .writexml from a dataset and now I would like to
populate a combo box from that. Can someone supply a link or sample vb.net
code that show's how to do this... much appreciated...
here is some of the xml file:
<?xml version="1.0" standalone="yes"?>
<NewDataSet>... more >>
XmlReader, asp.net 2, and xmlexception help needed
Posted by TdarTdar at 5/17/2006 11:57:02 AM
Hello,
I am very new to the xmlreader in asp.net 2, I was just tring to read the
contents of is in the xml output. here is the sample code:
Dim settings As New XmlReaderSettings()
Dim reader As XmlReader
reader = XmlReader.Create(XMLOutput, settings)
While ... more >>
Get Element Value
Posted by Jay at 5/17/2006 11:41:49 AM
In a loop like so:
....
xmlr=cmd.executexmlreader()
xmlr.read()
do while xmlr.readstate <> xml.readstate.endoffile
loop
How do I return each individual element name and value from a document like
so:
<Customer>
<custno>2</custno>
<lname>Doe</lname>
<fname>John</fname>
<address>1... more >>
XML From Stored Proc
Posted by Jay at 5/17/2006 8:22:08 AM
In VB.NET (Studio 2005) I need to loop thru a result set returned from a
stored proc and generate XML for each row. E.g. exex procWhatever returns:
custno, lname, fname, address
2, Doe, John, 123 4th St.
3, Smith, Bill, 567 8th St.
4, Grant, Terry, 333 Wherever St.
For each on of those ... more >>
Losing space character value when writing attribute
Posted by Paul Hadfield at 5/17/2006 12:00:00 AM
Hi,
Wonder if anyone can help me on this, In DotNet2.0 I've been quite happily
using the WriteAttributeString method of XmlWriter object, but have run into
a problem when trying to output a space character as the value of an
attribute.
Prototype of the method I am using is XmlWriter.Writ... more >>
XSL - The variable or parameter '...' is either not defined or it is out of scope.
Posted by Jody Gelowitz at 5/16/2006 9:08:14 AM
I have run into an issue with variable scope within an XSLT document =
that is translated in VS.NET 2.0. Under VS.NET 1.1 (XslTransform), this =
code works fine. However, when using VS.NET 2.0 (XslCompiledTransform), =
the exact same XSLT transformation fails with the error:
System.Xml.X... more >>
How to rename an element?
Posted by W. Jordan at 5/16/2006 12:00:00 AM
Hello,
Can I rename the name of an XmlElement?
I can't find any method or properties to do so in the .net 2.0 sdk.
Shall I duplicate the XmlElement's children and attributes
just in order to change its name?
--
Best Regards,
W. Jordan
... more >>
base64 encoding
Posted by Loren Dummer at 5/15/2006 2:47:18 PM
In Visual Basic 6 I could take a value from the database and create a byte
array. I could then take the byte array and place it into an Xml document
and specify the datatype of the node as bin.base64. Can anyone tell me how
to accomplish this in Visual Studio .Net 2005?
Sample VB6 code.... more >>
how to pass parameters to xsl from my aspx file
Posted by Wang Xiaoning at 5/15/2006 2:42:24 PM
I have an customerdetail.xsl sheet
----------------------------------------------------------
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="customer_number"></xsl:param>
<xsl:template m... more >>
DTD options
Posted by Shawn at 5/15/2006 11:59:01 AM
I have a XML, DTD, and XSD documents. I am using them to store custom table
mappings and import scheduling for my project. Here is what I am trying to
figure out:
In the DTD I have a "schedule" element with a "timing" attribute. There are
hourly valid times so I created an attribute list... more >>
XslCompiledTransform not outputting to XmlDocument
Posted by p-cresswell NO[at]SPAM iname.com at 5/15/2006 10:18:55 AM
Hi guys/gals,
Can you help with this? I am trying to use an XSL tranform with the new
XslCompiledTranform class. I want it to output to a XmlDocument, but
the document is empty after .Transform(...) but i Know thethe xsl and
source xml are fine becasue if I output the Transform to a file it
w... more >>
SchemaSet.Compile() - possible to extract the logical schema?
Posted by Allen at 5/15/2006 9:27:03 AM
I have a very complex XSD with lots of imports and schemaRefs.
<longshot>I'm cheating and want to be able use the XSD.exe tool to simplify
serialization soooooooo was wondering if there's a possibility of compiling
the schema into a single logical set and then writing it out as a single
XS... more >>
Deserialization of Null Elements
Posted by Jason at 5/15/2006 6:03:01 AM
I have some XML that contains some null elements, for example:
<Document>
<StartDate/>
<EndDate/>
</Document>
I would like to process the XML using the .NET serialization tools
(XSD.exe). The schema for the XML is under external control (i.e. I can't
change it).
As far as ... more >>
Extract XML using Dotnet
Posted by csgraham74 at 5/15/2006 4:24:38 AM
Hi Guys,
I want to populate a nodelist so that i can extract various details.
The xml document i have is similar to the one below. baiscally i want
to extract the first instance of <PP> including <PP1> <PP2> <PP3> then
separately extract the next instance of <PP> <PP1> <PP2> <PP3>. Does
anyon... more >>
|