all groups > dotnet xml > march 2005 > threads for march 8 - 14, 2005
Filter by week: 1 2 3 4 5
Check Schemas are correct
Posted by John Jenkins at 3/14/2005 9:36:10 PM
Hi,
I have a lot of schemas to load into a schema collection. I load them in
by reading each one into a XMLTextReader from disk and add them into a
schema collection. I have a couple of issues to contend with.
1. The targetnamespace on all the schemas (except ones which define generic
typ... more >>
XSD.exe cannot generate wrapper classes for LandXML
Posted by MB at 3/14/2005 7:21:02 PM
I am trying to work out why .NET 1.1 SP1 (XSD.exe) cannot generate wrapper
classes for LandXML 1.0 or 1.1 (http://www.landxml.org/spec.htm) and yet .NET
2.0 (BETA 1) can for LandXML 1.0. The following tests show the results of
using XSD.exe in each of the four combinations:
..NET 1.1 SP1 wi... more >>
Reading fragments / .net 2.0
Posted by Oliver Sturm at 3/14/2005 4:12:55 PM
I have an XML file that contains fragments, meaning there's no root
element. Node names are in my own "test" namespace. Looks like this:
<test:info date="...">Content</test:info>
<test:info date="...">Other content</test:info>
....
I have some .net 1.1 code that reads the nodes from the ... more >>
Starting to read xml part way through a file
Posted by Xerox at 3/14/2005 4:06:08 PM
Are any of the xml streaming classes able to start reading from an xml file
part way through?
Say you have the following xml:
<root>
<elem val = "1"/>
<elem val = "2"/> **<>**
<elem val = "3"/>
</root>
Is it possible for any of the Xml streaming classes to pick up reading the
da... more >>
loading dataset with a XML
Posted by Mauricio Correa L. at 3/14/2005 3:20:55 PM
Hello, i have a string with a XML inside, but when a try lo load a dataset
with the next code.
Dim all As String = Webservice.getName(TextName.Text, TextNo2.Text).ToString
'this webmethod return a string wit a XML inside
Dim xmlreader As New System.IO.StringReader(all)
Dim datas As New DataS... more >>
Pound sign (£) in XML
Posted by Waldy at 3/14/2005 2:14:36 PM
Hi there,
I am using the .Net XML Serialization classes to create XML
strings. This has been working fine up until the point that one of the
strings contained a pound sterling symbol. The application that is
processing the output complains about the character. Both the strin... more >>
Remove Node Complete with XmlNode.RemoveAll
Posted by Sam at 3/14/2005 12:49:04 PM
I am attempting to remove a full node. XML Example:
<Videos>
<Video>
<Name>Crocodile Dundee 2</Name>
<Media>DVD</Media>
</Video>
<Video>
<Name>Terminator 6</Name>
<Media>DVD</Media>
</Video>
</Videos>
Here, seeing Terminator 6 doesn't exist, I want to remove th... more >>
How to parse xmlDocument with XPath
Posted by linesh.gajera NO[at]SPAM gmail.com at 3/14/2005 11:52:09 AM
Hi All,
I am new to XPath stuff. I want parse XMLDocument with XPath and find
out subset of information. If you look at following xml, for i.e how
can i retrieve subset information such as
'EnrollmentState','SCGProductCollection' or 'EnrollmentEntities'. I
have no idea how to parse following ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Version error
Posted by Jon at 3/14/2005 10:39:00 AM
Hello all.
I'm getting this error Missing mandatory attribute 'version'. with the below
XML
<?xml version="1.0" encoding="UTF-8"?>
<rs:data xmlns:rs="namespace_for_rs" xmlns:z="namespace_for_z">
<z:row PageID="index.aspx" ParentID="0" PageTitle="Home"
PageAddress="../Index.aspx"/>
... more >>
xml file not being released
Posted by Darren Guy at 3/14/2005 10:38:37 AM
If this is the wrong newsgroup, appologies, and if you could tell me the
correct group to re-post to
I have a class that loads an xml file, and then navigates to to get a
description based on an id number. When I use this class on my asp.net
project ( not using the vs.net debugger ) the xml... more >>
From TreeView To XMLDocument
Posted by Casper JH Erasmus at 3/13/2005 5:43:59 PM
How do I save the contents of a TreeView to a XML Document?
... more >>
XML Serialization and references?
Posted by Oliver Sturm at 3/12/2005 5:48:51 PM
Say I have a data class:
class Data {
public List<SubData> SubDataList1 { get ... set ... }
public List<Subdata> SubDataList2 { get ... set ... }
}
It's possible that a specific SubData instance is in SubDataList1 as
well as SubDataList2. When I serialize a Data instance, said SubDa... more >>
Update management
Posted by noam_a_jacobs NO[at]SPAM yahoo.ca at 3/12/2005 4:02:26 PM
A Tech question for those smart cookies with update management
experience. We use a product called EasyUpdate, from
www.AutoUpdatePlus.com, to manage the updates of our app after it has
been delivered to the client. From our perspective, it is great.
We are now keen to purchase the company's m... more >>
xml tags unrecognised by server??
Posted by lilyminako NO[at]SPAM yahoo-dot-com.no-spam.invalid at 3/12/2005 1:36:39 AM
I am new to xml and I am trying to use xml as web.config file. I will
use asp.net form to get the web.config settings. Below is my
web.config file:
<?xml version="1.0" encoding="UTF-8" ?>
<configuration>
<system.web>
<appSettings>
<add key="Searcharoo_VirtualRoot" value="http:/... more >>
disable animation
Posted by Andreas Zita at 3/11/2005 8:34:00 PM
Hi!
Can I disable the ... (in code)
.... expand/collapse animation of TreeView?
.... the minimize/normalize animation of a Form?
.... rollout animation of a ListBox?
Or can this only be controled from the OS for each instance?
/Andreas Zita
... more >>
Generating an XML file from an XML schema
Posted by Sean at 3/11/2005 6:19:02 AM
Hi,
How can I generate an XML file from an XML schema using Vb.NET?
Thanks
Sean... more >>
xml and schema
Posted by Sean at 3/11/2005 5:37:08 AM
Hi
I have a schema file (xsd) and I need to use it to create an Xml file
according to its structure.
I have tried to create a dataset for this schema file from VS.NET but I
receive an error message (the same table name cannot be in two nested node)
I musn't change the schema's structure... more >>
xml + xslt convert to rtf problem
Posted by chris at 3/10/2005 9:09:02 PM
Hi there,
I create an XML file from a dataset like this:
System.IO.StreamWriter xmlSW = new System.IO.StreamWriter(FILENAME);
dsUserData1.WriteXml(xmlSW, XmlWriteMode.WriteSchema);
xmlSW.Close();
Which gives me this XML file:
<NewDataSet>
<tblUserData>
<User_ID>Administrator</Use... more >>
Xml Node exists
Posted by Gene Vangampelaere at 3/10/2005 3:01:53 PM
Hello,
How can I check if a parameter (node) already exists in my xmldocument?
If it does not exists I have to add it
example:
If ExistsNode("SID") Then
'add the node
End If
I need some help for the "ExistsNode" function
<xml version="1.0">
<parameters>
<parameter>
<paramName>p... more >>
Writing a non string value to an XmlAttribute
Posted by dpakpaul NO[at]SPAM lycos.com at 3/10/2005 2:50:48 PM
Hi,
I have an XSD schema where I have attributes that are declared to
contain non string values such as integers etc. Take for example, this
declaration -
<xs:attribute name="IsThisTrue" type="xs:boolean" />
Now, I want to write or modify an XML document using the DOM API (using
C#) where ... more >>
Qualified Namespace Issue
Posted by AliasMrJones at 3/10/2005 1:41:05 PM
We're trying to get IBM Websphere Business Integration to talk to a .net
webservice. We're using document/literal. WBI is sending a soap request
that looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by Eric Moore
(Scholastic,... more >>
Is Microsoft abandoning XSLT 2.0?
Posted by Brianiac at 3/10/2005 7:53:22 AM
I've heard from a couple of sources now (including
http://blogs.msdn.com/mfussell/archive/2004/05/13/130969.aspx ) that
Microsoft will not be implementing XSLT 2.0 or XPath 2.0.
Mark Fussell seems to indicate in his blog that XQuery 1.0 will replace
XSLT. This makes no sense to me, as these... more >>
formatting xml
Posted by Adrian Parker at 3/10/2005 7:26:06 AM
I have an xml document object with xml in it, how can I convert the xml to a
string and format it so that it is is indented correctly. I've looked at
XMLTextWriter and the Format property, but am confused as to how to get the
data to a string and not to an output stream.. Also, if I have to... more >>
XML document must have a top level element error
Posted by juli jul at 3/10/2005 5:58:40 AM
Hello ,
I am trying to write to xml document (c#) by this code:
XmlTextWriter xml_writer=null;
xml_writer=new XmlTextWriter("Database.xml",null);
xml_writer.WriteStartDocument();
xml_writer.WriteStartElement("", "Account", "");
The problem is that when I am trying to open the xm... more >>
writer error
Posted by juli jul at 3/10/2005 5:22:48 AM
Hello,
I declare it in a public function inside a class:
XmlTextWriter xml_writer=null;
xml_writer=new XmlTextWriter();
and get this error:
System.Xml.Writer.XmlTextWriter()' is inaccessible due to its protection
level
Could someone tell me why (in c#) it happens?
Thanks a lot!
*** ... more >>
Undhandled Exception error in MS ReadXML example
Posted by Andras Serfozo Jr via .NET 247 at 3/10/2005 5:07:33 AM
(Type your message here)
Hello, I am having problems with a Microsoft XML example from VB=
at the Movies/Data and XML/Read XML Files=2E
I created the program just like in the movie and it works up to=
where the combo box gets populated=2E When I select a customer=
from the list it is suppo... more >>
Comparing XML Files
Posted by Mark Jerde at 3/9/2005 5:59:09 PM
I'm asking for ideas how to compare XML files. The files are schema-based
"Test Logs". They will be generated by several different machines, and the
longer files could be 1000 lines.
Some differences are ok:
<computer>SPITFIRE</computer>
vs
<computer>ODIN</computer>
However most... more >>
XML One to Many
Posted by Matt at 3/9/2005 4:41:02 PM
I have a requirement to transform a single XML document into many. Does
anyone know of a good way to do this in .Net? I plan on writing a
style-sheet to do this but I don't know how to get each occurrence of the
document back into the application. After the split I have to transmit the
data t... more >>
The root element is missing
Posted by Shinja Strasser at 3/9/2005 3:34:21 PM
what's the problem here ?
private static string HELPHELP(string xml)
{
MemoryStream stream = new MemoryStream();
byte[] b = Encoding.UTF8.GetBytes(xml);
stream.Read(b,0,b.Length);
stream.Position = 0;
MemoryStream newStream = new MemoryStream(stream.GetBuffer());
... more >>
XMLSerializer: Strange exception in serializing arrays -- but only on W2K3
Posted by Don McNamara at 3/9/2005 1:22:08 PM
Hi,
I've hit quite a strange problem with XmlSerializer on my W2K3 server. When
I serialize/deserialize using an exe on my local computer (XP), everything
works fine. When I put the code out on the server (W2K3) it throws an
exception. It only seems to happen when serializing/deserializing _ar... more >>
ignore empty line is xml
Posted by juli jul at 3/9/2005 10:19:15 AM
Hello,
How can I read xml file but ignore the empty lines in it : is there some
kind of function in C# that can read everything except for the empty
lines?
Thanks a lot!
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
Msxml2.XMLHTTP.3.0
Posted by Tanmay Saxena via .NET 247 at 3/9/2005 5:16:03 AM
I used Msxml2.XMLHTTP.3.0 in mycode. It is working properly in my local and
QA environment. But when i run my project on Staging environment i am getting
following error.
msxml3.dll: the download of the specified resource has failed
One difference between staging and other environment is i... more >>
Generate c# proxy class from IBM websphere (AXIS) webservice WSDL.
Posted by ffhansix NO[at]SPAM hotmail.com at 3/9/2005 4:03:21 AM
Hi,
I am having problems with generating a c# proxy class from a IBM
websphere WSDL file, when running the wsdl.exe to create the c# proxy
file command i recieve an error:
Warning: one or more operations were skipped.
Warnings were encountered. Review generated source comments for more
det... more >>
closing tag
Posted by juli jul at 3/9/2005 3:54:01 AM
Hello,
I want to move inside the xml fila and to read lines untill I read some
specific closing tag,for example:
</file>
How can I do it? Thanks a lot!
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
How do I get XML in a string loaded into a dataset?
Posted by Kevin Thomas at 3/8/2005 5:33:51 PM
Using VB.net
I have a string var (myXMLString) that contains some XML (gotten via a web
service that returns xml)
I want to load this xml into a dataset (myDataSet).
But the myDataSet.ReadXML() method doesn't take a string as one of its
overloads.
If I write myXMLString to a file, the... more >>
xsd.exe (version 1.1) can't deal with <xs:annotation>?
Posted by SA at 3/8/2005 3:54:54 PM
Hi all,
in the following situation:
<xs:element name="Type">
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="I"/>
<xs:enumeration value="J"/>
<xs:enumeration value="P">
<xs:annotation>P will occur for Primary.</xs:annotation>
</xs:enumeration>
... more >>
Comma delimited data conversion to XML
Posted by Larry Williams at 3/8/2005 11:23:09 AM
Is there an easy way to convert a string of data to XML format without having
to create the xml one field at a time?
Sorry I'm a newbie and my xml knowledge is limited. I have tried to search
through the documentation in .net but nothing jumps out at me.
Sample code would be great!... more >>
XML Aesthetics
Posted by Neil B at 3/8/2005 10:08:17 AM
Hi folks,
If I have a .NET XmlDocument object into which I've imported a full node
from another document, I'm running into a formatting issue. The problem
arises when the imported node is nested at a different level in its
source document than its destination document (among other things) w... more >>
What is a good start book
Posted by me at 3/8/2005 9:49:29 AM
What is a good start book for XML and ASP.net with C#?
... more >>
Print PDF From XML ASP.NET
Posted by csgraham74 NO[at]SPAM hotmail.com at 3/8/2005 8:14:28 AM
Hi Guys,
Just wondering if anyone can help me.
I have created a pdf document and saved it in xml format and also
saved it to my sql server file as a string. i know this works
correctly.
My issue is how to print out the pdf document from the SQL server
table( .i.e. the file with the image... more >>
ReadInnerXml() c#
Posted by juli jul at 3/8/2005 5:56:20 AM
Hello,
I am working with c#.
I have a class which reads xml and has to pass to another class(by
making an instance of it and activating it constractor) a part of this
xml that the next class could read it.
I am doing it with ReadInnerXml() but my question is which variable can
contain the re... more >>
|