all groups > dotnet xml > march 2004 > threads for march 22 - 28, 2004
Filter by week: 1 2 3 4 5
How to capture SELECT ... FOR XML RAW
Posted by Gopinath Munisifreddy at 3/26/2004 7:56:02 PM
Hi,
Can u tell how to capture output of the following query into a variable and
reuse the variable
"select TOP 1 FirstName, LastName FROM pATIENT FOR XML AUTO"
Thanks
Gopinath M
... more >>
XMLTextWriter -> utf8 string?
Posted by Bill Cohagan at 3/26/2004 7:17:32 PM
I'm trying to generate an XML document within a string. I can do this using
the XmlDocument class and it's CreateElement, etc. methods, then at the end
I reference the OuterXML property and I've got it.
What I'd like to do (for various reasons) is to use an XMLTextWriter instead
of the DOM, bu... more >>
Force serialization of elements
Posted by Bradley Plett at 3/26/2004 12:06:52 PM
I have a very simple XSD which I turn into a class using the xsd.exe
tool. The XSD contains some binary and some string elements that have
default values. However, when I serialize an object based on the
resulting class, unless these values have been explicitly assigned,
they do not get serial... more >>
xml generated from nested tables not quite what I want
Posted by funk_monnk NO[at]SPAM hotmail.com at 3/26/2004 6:55:19 AM
I'm getting my data fom a stored procedure, and loading it into a
dataset with a data relation. Using getxml I don't get what I want:
Got:
<dataset>
<customer>
<order>
</order>
</customer>
<customer>
<order>
</order>
<order>
</order>
</customer>
</dataset>
Want... more >>
Serializing XML document
Posted by AA at 3/25/2004 6:21:29 PM
hello, I need to serialize this XML...
<xmlData>
<Names>
<Name>John</Name>
<Name>Peter</Name>
<Name>Maria</Name>
</Names>
</xmlData>
To this Object ...
Public Class xmlData
Public Names() as String
End Class
But the serialization process ne... more >>
Building a schema from a class/object at runtime
Posted by HJ Rodriguez at 3/25/2004 5:20:58 PM
Hello all,
I have the following serializable class.
----------------------------------------------------------------------------
--
Public Class Test
_testID as int32
_testName as String
Public Sub New()
MyBase.New()
End Sub
<XmlAttributeAttribute()> Public Property Test... more >>
Is it possible to rename attribute name in an existing xml document?
Posted by AndrewV at 3/25/2004 12:20:00 PM
For example, if I have this xml doc ...
<root><row column1="some value" /><row column1="more value" /></root>
Now I would like to change column1 attribute name to newColumnName like this
....
<root><row newColumnName="some value" /><row newColumnName="more value"
/></root>
Is it possible t... more >>
How to pass node to xslt c#
Posted by Donald Adams at 3/25/2004 12:00:11 PM
In the old days I could pass in the current context using:
<xsl:value-of select="user:makeId2(.)" />
in my xslt and I could do stuff like the following:
e.SelectSingleNode("..")
How do I pass a node context to C#? It looks like it can only receive like
the following:
public string makeId... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
ASCII encoding a file
Posted by steven.skarupa NO[at]SPAM usa.net at 3/25/2004 7:38:02 AM
I am having problems creating a file from the result of a
XslTransform.Transform operation. This is XML->EDI conversion and the
resulting text has to be in ASCII format, but no matter what I do the
output of the file is in UTF-8.
Please note: I'm using .NET Framework 1.0.
Here is the code ... more >>
DataSet.ReadXML() and xml:stylesheet
Posted by Kai Thorsrud at 3/24/2004 3:17:58 PM
Hi!
I've developed an application that uses XML as its datastorage. The
resulting XML file are to be used in a webpage with a XSL Stylesheet.
However if i add a <?xml:stylesheet type="text/xsl" href="style.xsl"?> tag
in my XML document the ReadXML method throws an exception like this:
Syste... more >>
How to use HTML in an XML document that will be parsed using XPathDocument, XmlTextWriter, and XslTransform
Posted by Novice at 3/24/2004 9:11:11 AM
This should be a fairly simple question assuming you know about XPathDocument, XmlTextWriter and XslTransform classes (which apparently I don't know enough about)
I've written some visual basic to read in an xml file - for example (all of the files - xml, xsl, etc I include are not the ones I'm ac... more >>
How to use XPath expression to parse XML document and using XSL - i.e. do a selective XSLT
Posted by 6tc1 NO[at]SPAM qlink.queensu.ca at 3/24/2004 6:56:11 AM
I'm trying to do a selective query (in visual basic) of some xml that is getting
formatted based on a XSL document - i.e. I'm doing an XSLT.
However, I can't seem to get the XPath expression that I'm using to
affect the output i.e. I always just get all of the XML instead of
just the subset th... more >>
XML output of UTF8 string.
Posted by vm NO[at]SPAM vmirage.cjb.net at 3/24/2004 1:47:19 AM
Hi,
I'm trying to output a UTF8 string into an xml but this is what i got.
�A�L�P� � (high ascii)(high ascii)(high ascii)
notice the � ?
How do i get rid of it and get rid of � to get the following result?
ALP (high ascii)(high ascii)(high ascii)
I'm usin... more >>
Returning UTF-8 XML Declaration after serialisation
Posted by Gary Brewer at 3/23/2004 1:20:28 PM
Hello,
I am running the following code -
XmlDocument xmlDoc=new XmlDocument();
XmlSerializer xmls=new XmlSerializer(type);
System.IO.MemoryStream ms=new System.IO.MemoryStream();
xmls.Serialize(ms,o);
ms.Position=0;
xmlDoc.Load(ms);
return xmlDoc;
My XML declara... more >>
Web Service methods require custom types, VS.NET generated Types are empty
Posted by Joe Rattz at 3/23/2004 6:56:05 AM
I am trying to consume a web service. The web service has methods that accept custom types as input and output arguments. When I add the web reference in VS.NET 2003 and it generates the proxy code, I end up with stubbed in custom types classes that are empty, meaning they inherit from nothing and... more >>
Problems with XmlTextReader
Posted by CD at 3/22/2004 10:19:57 PM
Hi,
I am trying to load an XML text file using an
XmlTextReader using a BufferedStream.
I am using the following code:
(assuming m_reader is a valid XmlTextReader)
while (m_reader.Read())
{
if (m_reader.NodeType!=XmlNodeType.Element)
continue;
if (m_reader.LocalName == ... more >>
Custom XML Reader
Posted by Van Balasubramanian at 3/22/2004 4:41:23 PM
Hi,
Where can I find the complete downloadable code for the MSDN article =
found at:
Implementing XmlReader Classes for Non-XML Data Structures and Formats
I am looking for a custom XML reader implementation.
Thanks,
Van.... more >>
When is MS going to fix bug in System.Xml.Schema
Posted by news.microsoft.com at 3/22/2004 3:42:54 PM
Concerning Q317490
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q317490
When is Microsoft going to fix this?
gkelly
... more >>
xmlexception
Posted by klesjezot NO[at]SPAM hotmail-dot-com.no-spam.invalid at 3/22/2004 2:35:40 PM
Hi,
I have a string which contains an xml file (strXml).
When I try to load the string into an xml document I get an
XmlException
Dim doc As XmlDocument = New XmlDocument
doc.LoadXml(strXml)
What's the reason for this exception?
Posted Via Usenet.com Premium Usenet Newsgroup Servic... more >>
How can i serialize in memory
Posted by Fabiano at 3/22/2004 12:06:04 PM
Please,
i have a app that receives a XML string. I would like to convert it to a
Dataset but to do this i'm saving the string as a file and then call LOADXML
dataset method.
Is there a way i can serialize this xml string in memory and the send it to
a dataset? I need to save it as file ever... more >>
|