all groups > dotnet xml > february 2005 > threads for february 15 - 21, 2005
Filter by week: 1 2 3 4
XmlSerialization: bool as 0/1
Posted by Diego Mijelshon at 2/21/2005 4:16:55 PM
While the XmlSerializer can read boolean values as either 0/1 or true/false,
it always writes true/false, which is a problem when I want to insert in an
SQL Server bit column.
Temporarily, I'm using a surrogate variable (see below), but I'd like to do
it in a cleaner way. Is it possible?
Co... more >>
XMLWriter and NumberDecimalSeparator
Posted by Vyacheslav Lanovets at 2/21/2005 4:02:58 PM
Hello, All!
Is it possible to change parameters of locale for writing XML file
(with XMLTextWriter)?
I want DataSet.WriteXML() to use NumberDecimalSeparator "." instead of ","
Regards, Vyacheslav
... more >>
problems with loading different xsd's with same namespace to XmlSchemaCollection
Posted by Che at 2/20/2005 7:28:38 AM
Greetings,
I am writing an application that uses an extendible XML file. in order
to validate that XML I use a main XSD and in additional - few more
extensions XSD's that uses the types in the main XSD as base types.
my clients can define their own XSD's extensions and use my generic
applic... more >>
XML Serialization:: Too many ArrayList elements
Posted by Codex Twin at 2/19/2005 2:20:08 PM
I'm using XML Serialization to try and get this structure:
<LibraryCategories>
<LibraryCatgeory>1</LibraryCatgeory>
<LibraryCatgeory>2</LibraryCatgeory>
<LibraryCatgeory>3</LibraryCatgeory>
</LibraryCategories>
My class has a public property called LibraryCategories, of type Ar... more >>
Do XmlNode's have a unique internal system ID?
Posted by nntp1.sympatico.ca at 2/19/2005 12:51:09 AM
Hello all,
Do System.Xml.XmlNode's have a unique system ID available via a
property somehow?
I have nodes which may be very similar or even identical (but in
different locations) in a document and need to be able to look them up
via this ID. I have for now assigned my own GUID to each ... more >>
Inline XSD schema for XML with no namespaces
Posted by Edward Diener at 2/18/2005 6:02:14 PM
I could not find an example of an inline XSD schema for an XML document
which has no namespaces. Could someone supply one ? When I tried validating
my XML with an inline XSD schema, using XmlDocument.Load on a validating
reader set to System.Xml.ValidationType.Auto, it failed and I do not know... more >>
One Element, one attribute - simplest xsd?
Posted by Mark Bosley at 2/18/2005 12:13:07 PM
Well, despite reading an excellent article on ComplexTypes,
I am unsure on the quickest way to express the following
<myElem myAttrib="noMoreThan30chars">
No More than 30 chars
</myElem>
Both on the string are SimpleContent, right?
Thanks, Mark
BTW the article is
http://www.xml.com/pub/a... more >>
XPath Query problem with Namespace
Posted by MAF at 2/18/2005 9:28:41 AM
I am triing to query the following xml document. I am loading the xml into
a XML Document and then using XPath to get the EntityDataSet Node
Here is my code
XMLDoc = new System.Xml.XmlDocument();
if (this.m_FileLocation != null && this.m_FileLocation.Length > 0)
XMLDoc.Load(this.m_Fil... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
XPath query problem w-attributes
Posted by Dave Lech at 2/18/2005 9:05:01 AM
In a C# app I have an XPath query where I am trying to return a single node
based on the value of 2 different attributes.
The xml looks something like this:
<TESTS>
<TEST SAMPLE_NUMBER="1" TEST_NUMBER="1"/>
<TEST SAMPLE_NUMBER="1" TEST_NUMBER="2"/>
<TEST SAMPLE_NUMBER="2" TEST_... more >>
Change encoding from UTF-8 to ISO-8859-1
Posted by JuanDG at 2/18/2005 8:39:08 AM
Hi,
I have a .Net Web Service and the encoding of the SOAP Messages is always
UTF-8, and I need to change the web service so that it encodes with
ISO-8859-1 because it’s the only encoding my web services client supports.
I've updated my web.config & machine.config Globalization requestEn... more >>
Changing a single value in an xml file
Posted by Brett at 2/18/2005 7:33:04 AM
I often have to change a single value in an xml file based off of a given ID.
Is there any easy way to do this through .net.xml?
Do I have to parse the file then write it out again?... more >>
Gurus for XML TextStream vs Response Stream vs XMLValidatingReader
Posted by Neal at 2/18/2005 6:15:01 AM
Hi,
I try retrieve an XML stream from a webapp
using a post
"http://webedu.its.uct.ac.za/webct/public/serve_webctdb?OPERATION=homearea_xml&DB=global&WebCT%20ID=rodgersn_its_main&AUTH=ee09aabc77ef593917a60720f167c733"
and
result = req.GetResponse()
ReceiveSt... more >>
strange and curious problem
Posted by bch NO[at]SPAM genie.co.uk at 2/18/2005 3:16:07 AM
Hello and thank you for reading on (hopefully).
How does one typecast the XMLREADER returned from the XSLTRANSFORM
method 'transform' into XMLTEXTREADER, so it can be passed in to an
XMLVALIDATINGREADER?
I am getting an invalid cast.
It seems that although the XSLTRANSFORM 'transform' met... more >>
XML abd PDF
Posted by news at 2/18/2005 2:12:25 AM
Can I generate PDF from XML using .NET?
... more >>
Extra HTML In Response.OutputStream from ASP.Net xslDoc.Transform
Posted by Todd at 2/17/2005 5:59:01 AM
Hello Folks!
Using http://support.microsoft.com/default.aspx?scid=kb;en-us;320847 as
a reference, I am trying to pipe the results of an XSL Transformation
directly out of a WebApp Default.aspx. The code is as follows;
------------------------------------------
Private Sub... more >>
Cannot implicitly convert type 'object' to 'System.Xml.XmlNode'
Posted by pieter_van_landuyt NO[at]SPAM hotmail.com at 2/17/2005 5:58:40 AM
Hi,
I have a problem with XmlNodes and my stack.
It looks something like this:
//declarations
XmlNode node, new_node;
Stack MyStack = new Stack();
//code
MyStack.Push(node);
new_node=MyStack.Pop();
The last line delivered an error like this:
Cannot implicitly convert type 'object' to... more >>
XslTransform and Long Long String in memory
Posted by Yuriy at 2/17/2005 3:00:35 AM
Hi,
Can anybody explain the following?
Say I have the following source XML and XSLT (see below). No matter what
this XSLT does. It is just a sample to show a problem. the idea is that
XSLT transforms small XML into quite big XML. Now, I have a straightforward
C# (see below) code that d... more >>
Newbie problem: empty nodes won't collapse
Posted by Ross Presser at 2/16/2005 5:13:03 PM
My app builds up a structure using a typed dataset; when it is done it
wants to output it as xml. Unfortunately, since <OBJECT> and <SOURCE>
elements appear in two different parts of the heirarchy, I had to rename
one pair as <OBJECT2> and <SOURCE2> in order to get the xsd to be valid. So
I hav... more >>
XmlAttribute, Prefix and LocalName
Posted by Fede at 2/16/2005 5:02:19 PM
Hi everibody,
I have a XML document that I load as XmlDocument. I would like to add it a
new tag "mytag" with an attribute "xlink:href".
For this purpose I wrote this code:
Dim myNode as XmlElement
myNode= myXmlDocument..CreateElement("myTag")
attr = myXmlDocument.CreateAttribute("xlin... more >>
Problem with XmlDataSource TransformFile property
Posted by John Jumper at 2/16/2005 1:39:04 PM
I am using an XmlDataSource in VS2005Beta1 and setting the TransformFile
property in my ASCX and it is finding both files. However, the resulting
data does not contain any of the sub nodes of the generated document. I have
tested my XSL by viewing the generated XML and it properly transforms... more >>
Newbie in need of Help
Posted by Joe at 2/16/2005 10:47:13 AM
I am trying to write a web service that gets a list of users from
ActiveDirectory and then returns them as an XmlNode that can be consumed by
InfoPath.
I am having problems finding a tutorial that will let me know how to create
an XML Node from scratch and build it out as I cycle through th... more >>
XmlSchemaCollection
Posted by (cmrchs NO[at]SPAM yahoo.com) at 2/16/2005 10:42:50 AM
Hi,
what is the purpose of having a XmlSchemaCollection since you can only validate an xml-file against 1 xsd-file at a time ?
so why have a collection ?
thanks
Chris
**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftwa... more >>
create XmlElement from a string
Posted by ryang at 2/16/2005 10:23:12 AM
Hi,
XmlElement.OuterXml allows us to get a string representation of a XML
element as well as its children but it is get-only and you can't assign
OuterXml to a string of XML fragment. Does anyone know a way to convert or
create XML element from a string of XML fragment? For example, if I ... more >>
Need help writing proper class structure based off XSD schema.
Posted by JTrigger at 2/16/2005 10:18:50 AM
I am rather new to the XML and XSD world and was wondering what the code
would look like to write the following XSD items as classes in C# with all
the proper XML attributes to make them serializable. Thanks in advance.
<xsd:complexType name="Order">
<xsd:sequence>
<xsd:element ref="Or... more >>
XML Appropriate for Byte Oriented Data Records
Posted by Mark Jerde at 2/16/2005 6:57:34 AM
Googling and GoogleGrouping for "XML Byte Data Records" and similar bring
back millions of hits about character sets. ;-)
Is XML appropriate for specifying and validating byte-oriented data? Can it
be used for bit masking validation? Comments and URLs appreciated.
Thanks.
-- Mark
... more >>
Changing value of node
Posted by Urs Vogel at 2/16/2005 12:38:07 AM
Hi
When using XmlDocument, I can create nodes and attributes as I like. What I
didn't achieve is changing the Value of a node (created with createElement),
it claims that it's the wrong node type. When changing the InnerText, I
loose all child nodes. When cloning the node and reassigning th... more >>
Problem with XmlDocument.Load method.
Posted by uldisv NO[at]SPAM nelss.lv at 2/16/2005 12:33:23 AM
I get an unhandled exception, when I try to execute
XmlDocument.Load(...) in my C# Windows application:
--------------------------------------------
"Common Language Runtime Debugging Services"
Process id... thread id...
Click OK to terminate ...
Click Cancel to Debug ...
-------------------... more >>
Reading a dataset into XML
Posted by Chet Cromer at 2/15/2005 8:21:16 PM
I have a table in my SQL Server that I am loading into a datatable. I am
then saving the dataset that this table is a member of (it's the only
table in the dataset) to an XML file so that I can use it offline in
another part of my program. The code I use for this is:
ds.WriteXML("c:\cli... more >>
Reading XML from a Windows service
Posted by jdm at 2/15/2005 4:55:46 PM
Using the function below, I'm importing configuration parameters, from
an xml file, into a Windows service. This code works as expected in a
regular Windows application, but when used in a Windows service
(written in vb.net), it produces unintended side effects. The most
notable being multiple... more >>
XmlTextWriter - Attributes
Posted by Andy at 2/15/2005 1:39:03 PM
Hello:
I would like to output the following XML Element using the XmlTextWriter,
but I cannot get it correct:
-----------------------------------------------------------------------------------------------
<SOAP-ENV:Body
xmlns:SOAP-SEC="http://schemas.xmlsoap.org/soap/security/2000-12"
S... more >>
SelectNodes and namespace problem cont.
Posted by pneumoconi NO[at]SPAM hotmail.com at 2/15/2005 10:33:18 AM
I've read a lot of posts on this subject each with a slightly different
issue and from what I gather my code is fine. But its not. I'm trying
to pull out the SQL query from a SQL report document which looks
something like this:
<?xml version="1.0" encoding="utf-8"?>
<Report
xmlns="http://sch... more >>
XmlDocument and iso-8859-1 Encoding
Posted by Mogens Nielsen - Elbek & Vejrup A/S at 2/15/2005 2:27:02 AM
Hi all,
I have an application loading xml-documents. The purpose is just to load the
document and do some processing. The documents is generated by external
vendors outside my company.
Some of the vendors, however, delivers the documents encoded as iso-8859-1 -
the document root looks like t... more >>
|