all groups > dotnet xml > july 2005 > threads for july 8 - 14, 2005
Filter by week: 1 2 3 4 5
Help with XML/XPATH
Posted by baggy at 7/14/2005 8:02:41 AM
Hi,
I have the following XML:-
<X1>
<Props>
<Prop xsi:type=\"text\" Name=\"N1\"><Value>TestUser</Value></Prop>
<Prop xsi:type=\"bool\" Name=\"flag\"><Value>0</Value></Prop>
<Prop xsi:type=\"int\" Name=\"numemp\"><Value>100</Value></Prop>
</Props>
</X1>
I want to extract jus... more >>
Encountering Error: This is an unexpected token. The expected token is 'NAME'.
Posted by SaCompGeek at 7/14/2005 7:58:33 AM
I have a class that defines a Key/Name value collection that i
generated by and XML Element with multiple attributes. The attribute
are used to create the collection of 'Binate' objects. This is writte
in VB.NET 1.1.
I have this class in a Win32 test application and it works fine. Whe
I p... more >>
unknown xslt function "format-dateTime"
Posted by cody at 7/14/2005 12:00:00 AM
Iam using Beta2 of VS2005 and getting the error "Error 4 'format-dateTime()'
is an unknown XSLT function" at the following line:
<xsl:value-of select="format-dateTime($pubDate,'[FNn] [D] [MNn] [Y]
[h]:[m01] [PN]')" />
how can I get around this?
... more >>
Loosing schema information while converting DataSet to XML
Posted by Wolfgang Woznik at 7/14/2005 12:00:00 AM
Hello,
I have a Client/Server system based on a single generic communication method
using XML (as done in MS Project-Server or SharePoint-WebServices).
To transfer DataSets I'am using XmlDataDocument.
This works fine.
However the created XmlDataDocument does not contain schema information,... more >>
Defining relations in XML Schema
Posted by George Homorozeanu at 7/13/2005 5:15:13 PM
Hi,
I have a question related to the XML-Schema definition. Is it posible to
define relations between elements? The following is my XML Schema:
<xs:element name="root">
<xs:complexType>
<xs:sequence>
<xs:element name="Country" type="Countries"/>
... more >>
displaying xml document
Posted by stotty NO[at]SPAM gmail.com at 7/13/2005 1:10:23 PM
I have a string which contains an xml document in my app.
Does anyone know of an easy way to display XML data in a browser, with
nice
indentations between nodes, and maybe even the +/- controls that IE
uses
when displaying XML?
Matt
... more >>
default namespace and xpath
Posted by David Thielen at 7/13/2005 12:39:07 PM
Hi;
I set up my xml as follows:
XmlDocument xml = new XmlDocument();
xml.Load(File.Open("data.xml", FileMode.Open, FileAccess.Read));
XmlNamespaceManager context = new XmlNamespaceManager(xml.NameTable);
context.AddNamespace("", "http://www.test.org");
context.AddNamespace("sns", "http:... more >>
Find unique entries
Posted by Turtle at 7/13/2005 11:17:19 AM
I have an xml file which represents a data table with several fields.
I want to extract a list of unique entries in one particular field.
What's the best way to do this?
TIA!
- Turtle
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
how to read XML with entities using C#
Posted by Mark at 7/13/2005 10:59:55 AM
Hi there,
I have two xml files, one is a master file and the other is just a fragment
of xml. Master xml file uses 'DOCTYPE' to define the other file as an
entity. Then, the master uses entity references that are supposed to be
expanded into real content at parsing time. Examples are provi... more >>
NonSerialized attribute not working?
Posted by Timo at 7/13/2005 8:53:19 AM
When I use XML serialization to serialize a collection of MyObject, all of
the public fields of the object are being serialized, even those I've given
the <NonSerialized()> attribute.
<Serializable()> Public Class MyObject
Public FieldID As String
Public ParentId As String
Public ItemId... more >>
Trying to convert from VBScript to VB.NET to work in my ASP.NET app
Posted by klj_mcsd NO[at]SPAM hotmail.com at 7/13/2005 7:20:19 AM
Trying to convert from VBScript to VB.NET to work in my ASP.NET app
Set stream = server.CreateObject("ADODB.Stream")
stream.Type = adTypeBinary
stream.Open
stream.LoadFromFile Server.MapPath(filename)
contents = stream.read
' Write stream to Response object
Res... more >>
Buffer bug with XmlTextReader
Posted by Kjeld at 7/13/2005 5:46:02 AM
My scenario:
I'm using an XmlTextReader to Deserialize serveral classes from a single xml
document. Every class i pass the source stream, containing the xml.
Each class subsequently creates an XmlTextReader object with that stream as
input.
However, the second class that performs this operati... more >>
XslTransform is obsolete?
Posted by cody at 7/13/2005 2:15:16 AM
Iam using Beta2 of VS2005 and got this strange message:
Warning 1 'System.Xml.Xsl.XslTransform' is obsolete: 'This class has been
deprecated. Please use System.Xml.Xsl.XslCompiledTransform instead.
http://go.microsoft.com/fwlink/?linkid=14202'
G:\Coder\Projects\CSharp\WebbrowserTest\Webbrow... more >>
I can write schema annotations but I can't read them...
Posted by Rein Petersen at 7/12/2005 1:09:11 PM
I was wondering if anyone else had experienced a similar issue where it
is possible to write xs:annotation elements to a schema (verified in
the resulting document streamed to the filesystem) but I cannot read
them when I System.Xml.Schema.Read() [static] the document back from
the filesystem. I... more >>
corrupted xml file
Posted by rick at 7/12/2005 7:26:16 AM
I have a web.config file that contains some application specific information.
I want to edit that data. I created an xml schema file using program
xsd.exe. I then read that file into a dataset (ReadXml). I located an update
the data (all is well) but after I re-create the xml file (WriteXml... more >>
Validates in XML Spy but generates errors in .Net
Posted by Kapten Haddock at 7/12/2005 5:30:25 AM
Hi. I have a simple schema which validates fine in XML Spy but in .Net
I get a Type Exception:
[The 'startDate' element has an invalid value according to its data
type]
The effect I'm looking for is to be able to pass an empty date.
The Schema File:
<?xml version="1.0" encoding="utf-8"?>
... more >>
Saving XmlDocument object to client computer as a file
Posted by Aranarth at 7/11/2005 10:30:02 AM
I am working on a ASP .Net page with a C# back end that displays, and give
the option to save, an XmlDocument object. While displaying the XML in a
litteral was easy, I can't figure out how to allow the user to save the
XmlDocument as a file without creating an XML file on the server. It is
... more >>
xsd.exe: How to add base class to generated classes
Posted by Axel Dahmen at 7/11/2005 12:00:00 AM
I'd like to generate C# classes from an XML Schema file. All the generated
classes should provide a basic member function framework like Save() and a
basic member element like Dirty. Moreover, I'd like to have all the
generated class properties overwritten so that a write will set the Dirty
memb... more >>
XML indexing ?
Posted by Janiv Ratson at 7/11/2005 12:00:00 AM
Hello,
I have an MFC application.
In one of my screens the user need to choose a driver from a list of
thousands drivers.
We cannot use DB, so we use XML only.
The drivers files are in the system files every manufacturer has its own
directory and every model in the manufacturer directory has i... more >>
xml & script languages
Posted by mgalesic at 7/9/2005 12:14:15 AM
I need some literature of integration of XML with script language!
Any links?
Thanks!... more >>
Change the root tag name when serializing ICollection class
Posted by Q. John Chen at 7/8/2005 1:58:01 PM
I posted this in C# group and just found this spot.
I created a class that implements ICollection. After serializing got
following result:
<?xml version=\"1.0\" encoding=\"utf-16\">
<ArrayOfCustomer>
<Customer>
<FirstName>John</FirstName>
<LastName>Johnson</LastName>... more >>
XmlDocument does not release the Xml file
Posted by Fahad Ashfaque at 7/8/2005 2:33:03 AM
Hello,
I am finding trouble while using XmlDocument class to parse my xml documents
reside in file system.
The problem is, I have a function that loads the XmlDocument and the
function is called many times during the execution context; the first call
goes ok but the second call throws the... more >>
Update XML File
Posted by Doug Bell at 7/8/2005 12:00:00 AM
Hi I have an application where I need to Update an XML file.
The source is an Access DB.
The Application imports new records from the Access DB into a DataSet and
then needs to update the XML File.
The problem I have is that WriteXML overwrites the existing XML file so on
subsequent run o... more >>
|