all groups > dotnet xml > august 2004
Filter by week: 1 2 3 4 5
XmlSerializer does not deserialize elements /w specified namespace?
Posted by Lidström at 8/31/2004 11:54:23 AM
Hi,
the class looks like this:
[XmlRootAttribute(Namespace="http://www.landxml.org/schema/LandXML-1.0",IsNullable=false)]
public __gc class LandXML {
public:
...
};
public __gc class Surfaces
{
public:
...
};
and the element like this:
<Surface... more >>
System.Xml.XmlValidatingReader.set_ValidationType raised InvalidOperationException
Posted by jesse.elve NO[at]SPAM t4g.com at 8/31/2004 11:09:21 AM
I am using an XmlValidatingReader which uses an XSD for xml
validation. The code has been performing reliably for months.
Yesterday it failed for the first time with the following exception:
Inner exception of type System.InvalidOperationException has occurred
: The operation is not valid du... more >>
root from Schema
Posted by Petr Votoèek at 8/30/2004 3:15:34 PM
Hi all, does anybody know how to get all possible roots form XML Schema? I
think all elements without parents are possible roots. Is it true??
Thanks, Petr.
... more >>
XML/XSD: Show available attribute values from XSD in Intellisense
Posted by Don at 8/30/2004 2:37:07 PM
Hi:
I want to limit the values that can be entered for particular attributes.
1) I have created an XSD from my XML document.
2) I dropped that XSD file into the following directory C:\Program
Files\Microsoft Visual Studio .NET 2003\Common7\Packages\schemas\xml
3) When I use VS.NET to cre... more >>
send parameter to XSL
Posted by Eli at 8/30/2004 10:33:05 AM
Hello.
I have an ASPX file. I want to transform my XML stored in file by XSL (from
file too). I successfully use the code below:
<asp:xml runat="server" id="myXMLTag" DocumentSource="myXML.xml"
TransformSource="myXSL.xslt" />
or
<asp:xml runat="server" id="myXMLTag" />
<scri... more >>
Usage of // and $ in <xsl:value-of ...
Posted by Aravind G via .NET 247 at 8/30/2004 6:58:05 AM
(Type your message here)
--------------------------------
From: Aravind G
Hello all,
I have a peculiar situation.
Following is a small xml snippet in use
<ROOTNODE>
<SPSNODE>
<EXTERNALMESSAGE xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<PHILIPSRI... more >>
XmlSchema classes help needed
Posted by a701440 NO[at]SPAM hotmail.com at 8/30/2004 6:51:42 AM
Hi All,
I am having hard time figuring out how to programmatically construct a
schema with following comple type:
<xs:complexType name="A">
<xs:sequence>
<xs:element minOccurs="1" maxOccurs="1" name="B" type="B" />
<xs:element minOccurs="1" maxOccurs="1" name="C" type="C" />
<... more >>
Problem defining an XSD to validate for overlapping ranges
Posted by Jim Di Griz at 8/29/2004 12:41:00 PM
Hi
I have a problem to create an XSD that prevents overlapping ranges.
Sample XML:
<root>
<element LowerLimit="1" UpperLimit="50000">
.....
</element>
<element LowerLimit="50001" UpperLimit="250000">
.....
</element>
<element LowerLimit="250001" Up... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
web service / soap header processing in VB.NET
Posted by tonman at 8/29/2004 12:31:01 AM
I'm trying to do some accouting with a .NET web service. I would like to
simply log the request and response times for each web service method
invocation.
The LogRequest function simply INSERTs request data and the LogResponse
UPDATES the request data based on the RequestId value.
The p... more >>
xmlns=''> was not expected.
Posted by Shailendra Batham at 8/29/2004 12:20:54 AM
Hi guys,Does any1 know what this error is all about, what I am trying to =
do is deserialize a XML, below is my code, let me know what I am doing =
wrongpublic class test{xin =3D "<?xml version=3D'1.0' =
encoding=3D'UTF-8'?><InSession><PassWord>foo</PassWord><UserName>foo@foo.=
com</UserName></I... more >>
xmlNode.InnerText vs. xmlNode.Value
Posted by Dan at 8/27/2004 4:41:44 PM
I've loaded the following xml into an XMLDocument object:
<?xml version="1.0" ?>
- <Preferences>
<Institution>Argh</Institution>
<Speaker>Chigier, Ben (1234)</Speaker>
<Worktype>Addendum</Worktype>
<speakerCode>1234</speakerCode>
</Preferences>
I then try to retrieve the value of... more >>
XMLnodelist and XPATH Problem
Posted by Robert at 8/27/2004 3:10:34 PM
I am having a problem selecting nodes using the XMLnodelist Selectnodes
using XPATH when I use XML SPY is successfully queries but when is use
VB.net it comes up with nothing.
Here is my code
Dim nodess As XmlNode
nodess = myNode.SelectSingleNode("//Web[@Url=
'http://loca... more >>
Error when using XMLTextReader to read HTML
Posted by Mitch at 8/26/2004 7:26:03 PM
I have some simple HTML I'm trying to read with the XMLTextReader. As in the
MSDS examples, I set up a loop to read each XML node:
while (reader.Read())
{
switch (reader.NodeType)
{
case XmlNodeType.Element:
Console.WriteLine("<{0}>", reader.Name);
break;
ca... more >>
Value-of Select
Posted by Paul King at 8/26/2004 5:32:49 PM
Hi there,
Im in a pickle chaps. I need to fetch information out from our raw XML
files into a Style XSL sheet.
Basically I have the commant
<xsl:value-of select="Product/ProductCode"/>
However the structure of the XML file is based like the following example
<root>
<Product>
<... more >>
XSLT Doing my brain in....
Posted by Paul King at 8/26/2004 3:50:41 PM
Hi there,
I have a raw XML order file with the following structure
<root>
<header>
<body>
Ok the HEADER contains details about the XML msg and its originator etc -
pretty pointless stuff
The BODY however contains multiple Orders with descriptions and QTY's etc.
I have such de... more >>
XPath Query w/ Namespace
Posted by Scot NS Curry at 8/26/2004 3:45:30 PM
I have the following XML document.
<?xml version="1.0" encoding="utf-16"?>
<xd:xmldiff version="1.0" srcDocHash="6067335156532207495" options="None"
fragments="no"
xmlns:xd="http://schemas.microsoft.com/xmltools/2002/xmldiff">
<xd:node match="1">
<xd:node match="1">
<xd:node match="4"... more >>
XmlTextReader Problem - ServicePoint ConnectionLimit ArgumentOutOfRangeException
Posted by Keith at 8/26/2004 2:13:37 PM
Anyone else experience this problem when using the XmlTextReader? (See =
stack trace below)=20
I've installed the patch from knowledge base article 839588, but it =
didn't fix it.
System.ArgumentOutOfRangeException: Specified argument was out of the =
range of valid values.
Parameter name: T... more >>
XPath and default (overridden) namespaces
Posted by Peter Theill at 8/26/2004 10:11:28 AM
Hi,
I need some help on XPath ... what's the expressions to get:
1. All "Employee" nodes?
2. Only "Employee" nodes from "urn:test1" namespace?
The document is shown below.
<?xml version="1.0" standalone="yes"?>
<NorthwindEmployees>
<Employee xmlns="urn:test1">
<employeeid>1... more >>
whitespace in empty nodes after save
Posted by frostbox NO[at]SPAM hotmail.com at 8/26/2004 4:36:49 AM
Loading and saving a xml document in .net creates whitespace in empty nodes!
loading an empty node like:
<node></node>
..net saves as:
<node>
</node>
resulting in a whitespace when processed by xslt like:
<xsl:value-of select="node"/>
Can the whitespace be removed from empty ... more >>
XPath: counting unique values
Posted by Jo Goos at 8/26/2004 2:39:06 AM
Hello,
I would like to count the unique values of a specific element in an XPath
statement.
Let's say I have the next XML document ...
<CLUB>
<MEMBER>
<NAME>Fred</NAME>
<LOCATION>Canada</LOCATION>
</MEMBER>
<MEMBER>
<NAME>Louis</NAME>
<LOCATION>Belgium</LOCATION... more >>
Http ---> Protocol(XML) ---> Http Content
Posted by Shahzad Atta at 8/25/2004 1:28:43 PM
Hi there,
My web server needs to get html source of a web page from a remote web
server . This html will be rendered to client browser after some processing.
I know it can be done via XMLHTTP object but I am looking towards a .Net
complaint solution, which is part of default .Net framework.(... more >>
how do I import a XMLTextWriter into an XMLDOCUMENT?
Posted by Tarren at 8/25/2004 9:51:36 AM
Hi:
I want to append a new transaction to a transaction log.
The transaction log is trans.xml
<transactions>
<transaction>
<id>12</id>
<stamp>1/1/1900 12:02</stamp>
</transaction>
</transactions>
Basically I have been able to make the new TRANSACTION fragment... more >>
Serialize method call, store it and run it later
Posted by edumen26 NO[at]SPAM yahoo.com at 8/24/2004 3:28:13 PM
Hello,
I'm looking for the best way to store a method call so I can execute
it in the future. I asume that the soap infraestructure can be useful
because it can serialize the calls and deserialize them. I just need
someone to point me to the start line (olympic expression by the way
;) ).
Th... more >>
serialisation of classes to generate XMLDocument
Posted by Stephen at 8/24/2004 2:43:03 AM
I need to generate input XML for another application by serialising classes
defined in an XSD document. The code below will generate the XML I require
but I need to generate this in memory rather than creating a file. I assume
I should be using System.IO.MemoryStream but can't get this to wo... more >>
Using innerXml and outerXml on a xmlDataDocument leaks cpu-resourc
Posted by Henrik K at 8/24/2004 12:17:01 AM
Selecting element nodes from a xmlDataDocument using the childNodes
collection or by using selectSingleNode and then reading innerXml or outerXml
leaks cpu-resources.
A trivial example showing this behaviour is included below.
Running this example increases the cpu-load gradually and reaches... more >>
Binding XML to datagrid
Posted by Do at 8/23/2004 11:37:34 PM
Hi,
I tried to bind an XML similar to the following to a datagrid.
<Idontwant>
<Iwant>
<Yes></Yes>
<Yes></Yes>
<Yes></Yes>
<Yes></Yes>
<Yes></Yes>
</Iwant>
</Idontwant>
The datagrid comes up with nothing. When I remove the node 'Idontwant' and
... more >>
free memory
Posted by frostbox NO[at]SPAM hotmail.com at 8/23/2004 9:25:01 PM
The system.xml.xmldocument does not implement a method to dispose() or
otherwise free the memory after instantiation.
Another discussion thread concludes that everything is handled
automatically though garbage collection once memory runs out !! (this
can't be efficient?)
Why then does other... more >>
How to generate dynamic XML from aspx page
Posted by Robson Carvalho Machado at 8/23/2004 7:03:02 PM
Dear Friends,
I was using the below code in ASP to dynamically generate XML from a SQL Query
Does anyone knows how can I migrate this code to VB and ASPX?
Regards
Robson Machado
Response.ContentType = "text/xml"
Response.Write "<?xml version='1.0' ?>"
dim RS, CN
set CN = server.Create... more >>
Schema Value Types int and Integer
Posted by Wayne Wengert at 8/23/2004 9:13:22 AM
According to the help file in VSNET 2003 the XML Schema Type "Integer" maps
to a .NET Framework type of "System.Decimal". This does not seem logical?
The Schema Type "int" maps to "System.int32" which seems logical. Can
someone explain this?
Wayne
... more >>
Write to XML
Posted by Diomatas at 8/22/2004 10:59:01 PM
Hello everybody
I am making an application in vb.net. I keep my app settings in an xml file.
What I am trying to do is to change the data of a node according to the
application user preferences.
All documents and example I ve found on the internet are about creating and
saving a whole x... more >>
XSL stuff
Posted by Eric D. at 8/22/2004 10:20:33 PM
Hi....
I have a sample xml that looks something like this:
<manifest>
<config>
<type>Processor Type
<options>
<option>ARM</option>
<option>Pentium</option>
<option>Alpha</option>
<option>Motorola</option>
</options>
</type>
</co... more >>
Specify Constraints in XSD
Posted by Wayne Wengert at 8/22/2004 8:39:06 AM
I am trying to find the correct way to create xsd files that include
constraints such as min and max values, etc. My current xsd file looks like
the example below (just an excerpt) but the <xs:restrictions... tag is
flagged as an error. I took that syntax from the sample in the Help files
(also ... more >>
Choice, Group, Complex, Arghghgh!
Posted by Michael J. Conroy at 8/20/2004 6:12:06 PM
Hi all -
XML 1 Me 0....
I have a parameter that could be one of two fixed values (enumeration), but
if the second option is selected, there are two other enumerations that must
be defined.
Example: TYPE A | B where A and B are fixed string selections
If A, the document stands
... more >>
XmlElement SetAttribute problem
Posted by nibble at 8/20/2004 3:49:02 PM
I'm doign the following:
XmlElement myElem....;
string name = "xmlns:"+"abc";
string value = "http://www.abc.com";
myElem.SetAttribute(name, value);
I get an exception saying that name cannot have ':' in it. However, MSDN
usage doc for this method explicitly says that ':' will be parsed a... more >>
XML Header
Posted by vb6dev2003 at 8/20/2004 2:42:33 PM
Hi,
I have some XML doc loaded in a C# Web Service.
XmlDocument doc = new XmlDocument();
doc.LoadXml(myDoc);
Code Missing to manipulate header (I would like to replace or manupulate all
these XXXXX):
<mso-XXXXXX productversion="XXXXXX">
<mso-application progid="XXXXX"?>
doc.Save(myNewD... more >>
Showing raw xml from memory in an asp.net page
Posted by Jesse Liberty at 8/20/2004 2:20:49 PM
Hi.
I'd like to create an xml document on the fly and then display it in an
asp.net page. I can use an iframe and point to a URL (which displays
perfectly), but I'd not like to save the xml to a file (it will be built as
I go along).
I can use the <asp:xml> control, but I don't want to have... more >>
Is there a simlpe SOAP -> method call example that doesn't use any transports, etc.?
Posted by nimai_malle NO[at]SPAM yahoo.com at 8/20/2004 8:29:50 AM
I have not had any luck searching for a simple, simple example that
calls a method on an object given a SOAP string. Here's what I'm
looking for (in pseudocode):
string SOAPCall = "bla bla bla"; // SOAP method invocation XML
string SOAPResponse;
MyObject x = new MyObject();
// and here's wh... more >>
Passing binary via SOAP
Posted by SQLScott at 8/20/2004 8:07:02 AM
Is it possible to pass a byte array via SOAP? I am getting conflicting
opinions.
--
Thanks,
Scott... more >>
loading XML into a dataset
Posted by Mike P at 8/20/2004 1:25:36 AM
I'm currently reading data from an XML file using XPathNavigator and
XPathNodeIterator to select the subset of data that I want. I've never
using the XPath objects before so I'm not sure how to get this data into
a dataset.
XPathDocument doc = new
XPathDocument(@"C:\inetpub\wwwroot\test\test... more >>
incorrect encoding after serialisation to XML
Posted by Stephen at 8/20/2004 12:29:02 AM
Using the code below I am trying, in VB .Net 2003, to serialise classes
defined in a couple of XSD documents. The encoding for both is
Unicode(UTF-8). However the resulting XML is encoded as UTF-16. This is
causing me problems when I try to load it into an XPath document. I would
imagine ... more >>
HELP! Using XMLTextWriter to write to a MemoryStream
Posted by SQLScott at 8/19/2004 10:23:02 AM
I have the following code that is supposed to use the XMLTextWriter to write
the XML to a MemoryStream:
Dim ms As MemoryStream
ms = New MemoryStream
Dim xtw As New Xml.XmlTextWriter(ms, System.Text.Encoding.UTF8)
xtw.Formatting = Formatting.Indented
xtw.Indentation = 2
xtw.QuoteChar ... more >>
XML XSL FO PDF
Posted by news at 8/19/2004 7:27:15 AM
Can I use XML->XSL->FO->PDF in .NET?
I have the XSL FO from XML, and now use client based FOP software. I have
seen a few commercial packages for FO->PDF but they are costly (1000
dollars).
... more >>
XmlTextWriter.WrireAttributeString append a 
 ( \n )
Posted by Jim Hsu at 8/19/2004 3:29:21 AM
for some reason, I can not use WriteStartAttribute pair.
but the WriteAttributeString gives me this 
,
'\n' seems very unnecessary , any way to work around this ugly thing?
google does not help...
-Jim
... more >>
XslTransform and empty elements
Posted by Geir_Sørensen at 8/18/2004 7:21:15 PM
Hi,
When I transform an xml-file using XslTransform, I seem to get a
lot of elements of this form:
<a> </a>
<b> </b>
But I really would like to get written out like I do when
transforming with MSXML, where I get
<a/>
<b/>
I did come up with a kludge, thanks to
http://www.mcse.m... more >>
Writing to a text file formatted as XML
Posted by Raj Kumar at 8/18/2004 12:55:02 PM
Hi!
I have a text file that looks like this:
<configuration>
<appSettings>
<add key="db_server" value="someserver" />
<add key="db_database" value="somedatabase" />
</appSettings>
</configuration>
Now, I want to check if value for db_server is empty and if it is, I want to... more >>
XSD For XML File
Posted by Mythran at 8/18/2004 10:32:49 AM
Hrm, I don't think it's possible to create a schema for the following XML, just
asking in hopes of some good suggestions for it:
<menuBar>
<menuBarItem>
<menu>
<menuItem />
<menuItem />
<menuItem>
<menu>
<... more >>
XPath beginners question
Posted by Mike P at 8/18/2004 3:04:42 AM
I have limited experience of XML and I am trying to use XPath to get at
all <tag4> elements given a certain value for <tag3> (see my example
below :
<?xml version="1.0" encoding="ISO-8859-1"?>
<tag1>
<tag2>
<tag3>
<tag4>
<tag4>
<tag4>
</tag2>
<tag2>
<tag3>
... more >>
getting the output of a transform as DOM
Posted by Andy Fish at 8/17/2004 7:02:14 PM
Hello,
I am doing an XSL transformation using the XslTransform object and I would
like to get the output as a DOM (XmlDocument or XmlElement)
Do I have to get it serialized and then parse it again, or is there anyway
to do it more directly?
TIA
Andy
... more >>
Generate test DATA from XML Schema
Posted by Petr Votoèek at 8/17/2004 12:12:42 PM
Hi all!
Please help me, I need some free util to generate testing data form XML
Schema. I would like to show approximate tree of elements and I don't want
to write a code (traverse through the SOM).
Any ideas?
Thank you
... more >>
HELP!!HELP!! - Import XMl into SQl using ASp
Posted by Michael Persaud at 8/17/2004 10:09:40 AM
HI,
I have a xml file and would like to import its contents into a table in
SQl2000
can some one say how? it has to insert multiple records
Thanks MP
... more >>
|