|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
.NET XMLmicrosoft.public.dotnet.xml
WriteXML encoding strings ! Please help
sorCrer -
20 Nov 2004 8:32 AM - 3 messages
Hi Guru's, Going crazy with this problem! I fill a dataset in asp.net with a 'FOR XML AUTO' query and Output it back to the browser. No matter what I do I get the first nodes "<" encoded as "<" This ...
why I can serialize a class without using [Serializable]?
ALI-R -
19 Nov 2004 10:37 PM - 3 messages
I have written a class in C# and I have serilized into a file .I read somewhere that if you want a class to be serializble you must add an attribute called [Serializable] before the class and within the namespace,I ...
XmlSchema doesn't include default namespace
John -
19 Nov 2004 9:41 PM - 1 message
Hi, I'm creating a component to generate a schema file much like VS generates for DataSets. I'm using XmlSchema to do the job and I also am using a XmlNamespaceManager to manage namespaces. XmlNamespaceManager nsmgr = new XmlNamespaceManager(nt); ...
Re: Generating XSD
John -
19 Nov 2004 8:58 PM - 1 message
Hi Sairam, If you want to do this programatically you can use SQLDMO to read SQL Server table properties including column names and types, unique/primary/foreign key contraints, etc. Then use the .NET XmlSchema class to generate a schema matching the manually ...
XML file vs Windows Registry
Danny -
19 Nov 2004 7:37 PM - 4 messages
Hi I just have a quick question. One of our Windows based application uses the registry for configuration type options and some other things. I want to modify our application to move to use a XML file instead of the registry. The other engineer argues that it is faster ...
Help.....XMLDataDocument Schema
Vish -
19 Nov 2004 5:03 PM - 1 message
I am trying to use xmldatadocument to load an xml file.The xml has the data as attributes, the datadocument is able to successfully parse the document into the tables and shows the right column count but does not add any rows. I ...
Variety of XML questions;
James Ankrom -
19 Nov 2004 4:44 PM - 1 message
Hi all, sorry I couldn't be more specific on the subject. I have a few questions that affect the design of objects I am building, and was wondering if anyone had any input or experiences to relate. Apologies if any of these ...
array to xml
ALI-R -
19 Nov 2004 12:49 AM - 2 messages
have tree variable with their values: 1) rptName="report1" 2) rptPath="c:\......" 3) serverPath=[link] and 4)an arry which contain Name/value pairs. what is the best way of wrting them into an xml file(C#)?? ...
XmlTextReader with Stream
CLL -
18 Nov 2004 7:15 PM - 2 messages
All, I have been following this thread for some time now. Recently I found that in 2 seperate posts, the MSFT employees responded as there was a QFE to fix this problem. All you need to do is contact PSS. ...
Xml2PDF formatting engine version 2.1 released
Altsoft Xml2PDF -
18 Nov 2004 8:53 AM - 1 message
Xml2PDF formatting engine 2.1 November 17, 2004 Altsoft N.V. Altsoft N.V. is proud to announce the release of version 2.1 of its Xml2PDF formatting engine. The update includes: - improved speed and memory management; - improved font embedding and selection; ...
Deserialize from SelectSingleNode
Geoff -
18 Nov 2004 2:11 AM - 6 messages
Is it possible to pull a single node (element) out of a complex XML file, using SelectSingleNode(), and then deserialize that node to an object? Could someone please post, or point me to, a simple, but complete example? ...
The active schema does not support the element 'xml'
David C. Allen -
18 Nov 2004 1:31 AM - 2 messages
I am trying to insert an xml data island into a htm file that I am using for a help file. When I insert the lines of xml, the <xml> tag is underlined in red in VS2003 and the message says "The active schema does not support the ...
encrypting XML fragments using WSE2.0
crypto-mania! -
18 Nov 2004 12:47 AM - 2 messages
I have a need to encrypt specific xml elements in a document and haven't been able to figure out a way to achieve this using the WSE 2.0 APIs. Please note that I do *NOT* want to send encrypted SOAP messages but rather need the ...
Creating Reports based on hierarchical XML file
John -
18 Nov 2004 12:33 AM - 2 messages
Hi, We have XML files (and its XSD) that are dump of our tree-like data structure in memory. These XML files may potentially have unlimited levels of nesting because some elements can contain themselves (recursively defined). We want to build some reports using some third party reporting tool ...
Registry to xml conversion
Paul -
17 Nov 2004 11:47 PM - 2 messages
Are there any samples or example c# programs to map key heirarchies in the the windows registry to an xml file and vice versa? ...
Re: WARNING: dotNet 1.1 SP1 breaks XmlTextReader with streams
CLL -
17 Nov 2004 11:09 PM - 1 message
Hi Dare - Would it be possible for you to post the KB article number for this QFE so that we can request it? ...
Re: Working app suddenly breaking. Changes to System.Xml.dll?
CLL -
17 Nov 2004 11:08 PM - 1 message
Hi Zafar - Would it be possible for you to post the KB article number for this QFE so that we can request it? ...
xml and dotnet
Venkat Chellam -
17 Nov 2004 7:11 PM - 4 messages
I have a following xml, i am new to dotnet. can anyone tell me how to get the attribute date_time from the response_header node using C# XMl is as follows <response_info_main xmlns="http://tempuri.org/Response.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
XSLT output and restricted encoding in Widbey
Lionel Fourquaux -
17 Nov 2004 5:20 PM - 3 messages
In .Net 1.1, System.Xml.Xsl.XslTransform cannot output directly a document in an encoding that cannot represent all the characters used (e.g. write in us-ascii for compatibility, and convert all non-ascii chars to entities). While it can be worked around (by defining a TextWriter that does the ...
Re: How do you prevent null elements from being serialized?
Dino Chiesa [Microsoft] -
17 Nov 2004 3:50 PM - 1 message
Kenny, you don't show your code, but something fishy is going on. 1. De-serializing from ....I get name=Joe, Age=37 and AgeSpecified = true (not false as you report). Also, changing the Name from Joe to Bob should not affect Age or ...
typed dataset and generating xml
Usha Vas -
17 Nov 2004 2:25 PM - 3 messages
Hi, I had posted this question in donet.framework.adonet but thought it might make more sense here, so I apologize for the duplicate post. I have an XML schema with one of the elements (Sig) having an attribute defined as such: ...
Return Dataset without schema
Patrik -
17 Nov 2004 12:05 PM - 2 messages
Hi I want to return a dataset from a webservice and exclude the schema. How can I do this? /Patrik ...
XmlSerializer
Loui Mercieca -
17 Nov 2004 9:45 AM - 4 messages
Hi, I have created a class, named FormField , which basically contains two fields, name and value. I have set the [XmlRoot(ElementName="field", Namespace=null)] tag before the class and the field is set as an XmlAttribute whil the name as XmlText. ...
Performance of System.Xml.Xsl.XslTransform
Paja via .NET 247 -
17 Nov 2004 9:11 AM - 2 messages
Hi all, I have problem with the %subj%. I need to convert XML to HTML using XSL transformation. Current vbcode Dim xslTransformer As Xml.Xsl.XslTransform = New Xml.Xsl.XslTransform xslTransformer.Load(stylePath) xslTransformer.Transform(sourceFile, outFile) When processing a bigger file (15 megs), it's unbelievable slow. I read some topics that I should use MSXML2 instead of System.Xml, but I wasn't able to find any example of usage. Can you help? ...
escape charactor when using xmlserilizer
Sisley li via .NET 247 -
17 Nov 2004 9:07 AM - 1 message
(Type your message here) -------------------------------- From: Sisley li I am trying to Deserialize an Xml file, here is my code m_serializer = new XmlSerializer(typeof(PatternSet)); m_reader = new StreamReader(fileUri); m_patternSet = (PatternSet)m_serializer.Deserialize(m_reader); My input file contains a string like this: ...
Dataset xsd validation and using .Getxml
Meral via .NET 247 -
17 Nov 2004 9:07 AM - 1 message
I'm having problems getting the XML in the format I require. I want my XML to basically look as: <DataRequester> <Instruments> <Instrument> <InstrumentDetails> ...
XML Array serialization problem
Raj Suryadevara via .NET 247 -
17 Nov 2004 9:05 AM - 1 message
Hi I am using XML serializationn in C#. I have code like this. public class Doc { [XmlArrayItem (ElementName="TNArray", Type=typeof(ReTN[]))] public object[] Obj; } [XmlRoot("TNA")] public class ReTN {something...} Here I am trying to set XML node as "TNA" instead of class name "ReTN". [XmlRoot("TNA")] works when I serialize single object, that means when I say [XmlElement(Type=typeof(ReTN))]. In single object case I am getting node name as "TNA". If I serialize array of objects as I was doing above it gives class name("ReTN") as node name. Any thoughts. ...
Not recognizing namespace prefix
Dale Anderson -
16 Nov 2004 10:38 PM - 3 messages
I have a schema that I'm trying to read. The schema has an element named 'GrantApplication' and one with a namespace prefix named 'SF424:GrantApplication'. When I try to read this schema in, I get an exception saying 'A datatable named 'GrantApplication' alread belongs to this ...
Re: How to tell the XmlSerializer to ignore all namespaces
Dino Chiesa [Microsoft] -
16 Nov 2004 9:51 PM - 4 messages
can I see an example of the OutputObject? Let's suppose it is really simple, like the following: <Output> <element1>value1</element1> <element2 name="something"/> <element3> ...
New to XML
Wardeaux -
16 Nov 2004 8:58 PM - 3 messages
Hey all, trying to cut my teeth on a simple XML parse... getting stumped... In sample#1 I see boxes for "Response:", "A:1" ... as expected, but In sample#2 I see boxes for "Response:", "B:2","C:2", and "Response" ...
How to deserialize null collections
Ryan Gilchrist -
16 Nov 2004 3:58 PM - 1 message
Hi, There appears to be a difference in how null arrays and collections are deserialized using XmlSerializer. A null array is serialized into nothing, then deserialized back to null again (which one could argue is the correct behaviour), while a collection is serialized into ...
RE: .net loses sp result when calling executeXmlReader. please hel
adolf garlic -
16 Nov 2004 10:07 AM - 1 message
Nigel, That's probably because you've gone back to using just a single piece of xml in the result set (don't forget that I am returning multiple snippets of xml) The way I managed to get this working in the end (in another posting) is this: ...
Date Formate when using ds.WriteXml
Robert Scarborough -
16 Nov 2004 6:48 AM - 5 messages
I have a Table in a Typed Dataset which contains a Date field called EventDate. I've ensured that the field is defined as Date as opposed to DateTime in the Typed Dataset. When I generate an xml file from an instance of this typed dataset using the ...
Restrictions on Attributes in XML Schema.
Shailendra Batham -
15 Nov 2004 10:04 PM - 3 messages
Hello Gurus, I want to put some restrictions on my attribute tag in my XML Schema, anyone out there have any idea how to do that. here is my XML and the XML Schema <?xml version="1.0" encoding="utf-8"?> ...
app.config xml file and application blocks
grs -
15 Nov 2004 7:56 PM - 5 messages
Can a class library have a app.config file. Reason for asking is that the microsoft application blocks all read from myApp.exe.config. How can you use the application blocks if you do not have an app.config file. ...
Classes Vs XmlDataDocument
Vish -
15 Nov 2004 7:08 PM - 3 messages
Hi, I have a set of nested object classes that now i have to serialize/deserialize to make webservice calls. I was thinking wouldn't it be better to use an XML Data document instead of using classes so i can ...
Determining if an Attribute is Allowed by the Schema
JMonnin -
15 Nov 2004 6:24 PM - 3 messages
I'm using an XmlValidatingReader to read an XML document and parse it against my schema. While I'm reading each node, I need to determine if the schema allows an ID attribute for the node. The ID is optional so it may not exist ...
Re: XmlSerializer Namespace problem
Alexis -
15 Nov 2004 4:34 PM - 3 messages
Hello Christoph Schittko, You did not answered my question. I guess you are too busy or you just don't know the answer. Thanks anyway for trying. ...
Error using XMLTextReader to read XMLDocument
SQLScott -
15 Nov 2004 4:19 PM - 8 messages
I have a Web Service in which I am trying to pass an XMLDocument as a parameter to one of the methods. I would like to use the XMLTextReader to read the XML but I am getting the following error: ...
Unicode Character (Polish) in a C# XML Web Service
DWillems -
15 Nov 2004 3:01 PM - 1 message
Hello, I have developped a C# XML Web Service. Methods of this Web Service will be accessed by a SAP Business Connector via XML. This all architecture will have to run for several countries as Poland and their own characters (Example : ąęłśżąęłśżąęł). ...
xsd tool/serialization problem...wrong xml ?
Andrea -
15 Nov 2004 11:29 AM - 2 messages
I was trying to deserialize my xml file (I enclose it below ) into a class. So I generated an xsd file given my xml using the MS xsd tool; then I generated the corresponsing C# class (using the MS xsd tool): the ...
Headache with namespaces ...
Carlo Garcia -
15 Nov 2004 10:05 AM - 3 messages
Hi I am having trouble with namespaces: Using the .NET System.XML classes, whenever I run an xpath on a file with a namespace, the xpath query returns nothing, but when I remove the namespace from the xml file I am quering, the xpath query works. ...
How to tell the XmlSerializer to ignore all namespaces
Alexis -
14 Nov 2004 5:09 PM - 1 message
[Message not available] ...
|
|||||||||||||||||||||||