all groups > dotnet xml > february 2005 > threads for february 22 - 28, 2005
Filter by week: 1 2 3 4
An XML question - calculating time total
Posted by Uncle Ben at 2/28/2005 11:17:06 PM
I would like to produce the following output based on my XML file:
My Album (2005)
Elapsed Time (hh:mm:ss): 00:07:00
Song 1: title1
Length (hh:mm:ss): 00:02:30
Song 2: title2
Length (hh:mm:ss): 00:02:15
Song 3: title3
Length (hh:mm:ss): 00:02:15
=====
<album>
<general>
... more >>
serializable class isn't written to xmlFile
Posted by chris yoker via DotNetMonster.com at 2/28/2005 6:29:38 PM
hiya,
I have a snipped class as follows:
<code>
<Serializable()> Public Class clsConfigClass
Public Sub New()
End Sub
Private Shared _dbConn As String
Public Shared Property dbConn() As String
Get
Return _dbConn
'Return _dbConn
... more >>
DateTime format from XML in ADO.NET
Posted by jonathan NO[at]SPAM jroberts.cix.co.uk at 2/28/2005 10:10:24 AM
I get DateTimes back from ADO.Net using XPathDocument for formated as
2005-02-25T00:00:00.0000000-00:00
rather than
2005-02-25T00:00:00
which I get back from SQLXML
which means that for EXSLT work on datefields you need you use
substring-before('.0000000'), (which I know will break some tim... more >>
Getting the Attributesd of a single element
Posted by qb at 2/28/2005 7:46:55 AM
I'm trying to get the Attributes of an Element in my XML.
The proces I'm using works fine until I have ELements of the same name.
<TodaysPurchase>
<Order CustNum="123456" CustName="LName"....etc..>
<Order CustNum="123456" CustName="LName"....etc..>
<Order CustNum="123456" CustName="LName"..... more >>
XmlElementAttribute: How to check if it exists.
Posted by Thomas Wolf at 2/28/2005 12:23:04 AM
If the WSDL of a web service defines a complextype with the attribute X how
do I examine if X is returned after the call?
Definition:
[System.Xml.Serialization.XmlElementAttribute("X")]
public string[] X { get; set; }
The problem is that I get a NullReference Exception ... more >>
XmlTextReader TCP Socket
Posted by Stelrad Doulton at 2/25/2005 10:51:06 PM
Hi all,
This is repost from dotnet.general, I have only just found this forum.
I am writting a Jabber-esque client-server application and have run into an
issue with the XmlTextReader constructor when passing a NetworkStream - It
hangs forever, apparently this is an issue with SP1.
Anyway... more >>
XML parsing error with schema
Posted by Edward Diener at 2/25/2005 11:19:09 AM
I have a simple XML file:
<?xml version='1.0'?>
<Employee xmlns='urn:MyEmployee-schema'>
<Name>
<First>
Edward
</First>
<Last>
Diener
</Last>
</Name>
</Employee>
and a schema to use to validate it:
<?xml version='1.0'?>
<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'
tar... more >>
Deserialization issues, handling integer properties correctly?
Posted by Raterus at 2/25/2005 10:13:04 AM
Hello,
I'm running into an issue when I'm deserializing an xml file into my =
custom object. This issues revolve around integer properties (though =
I'm sure others would apply). I have to account for my xml response to =
be empty (<myintegerfield />), if I simply use one property, I get =
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
with-param not working in XSLT
Posted by indyjones48 NO[at]SPAM yahoo.com at 2/25/2005 8:28:01 AM
Hi,
I'm using msxml4 sp1 to transform some xml. My template looks like
this:
<xsl:call-template name="rowCounter">
<xsl:with-param name="max_cols" select="2"/>
<xsl:with-param name="N" select="1"/>
</xsl:call-template>
<xsl:template name="rowCounter">
<xsl:param name="max_cols"/>
... more >>
Get rid of the namespace
Posted by Willie at 2/25/2005 6:39:03 AM
I've the following code:
writer.WriteStartDocument();
writer.WriteStartElement("n", "Property", "http://www.aaa.com");
writer.WriteAttributeString("xmlns", "j", null, "http://www.bbb.com");
writer.WriteAttributeString("xmlns", "n", null, "http://www.aaa.com");
wr... more >>
how...
Posted by ENDRI RACO at 2/25/2005 5:08:39 AM
i have to create an application in C# who read two XML documents from
any file ,compare them by tag"name"and show the difference.Anybody can
give me any instructions or any links about this problem cause I dont
know how to manage with this...Best regards
*** Sent via Developersdex http://w... more >>
Totally lost...Retrieving XML from WebRequest/Response..problems
Posted by Neal at 2/25/2005 12:13:02 AM
Hi All
I post a WebRequest, and the response is supposed to be delivered in XML
format.
posting the request in the browser address bar does return it..
ie
<?xml version="1.0" standalone="no" ?>
' <!DOCTYPE homearea (View Source for full doctype...)>
'- <homearea base="http://webedu.it... more >>
FrontPage Table of Contents - .xml files
Posted by whimsy at 2/24/2005 8:15:25 PM
How do I stop the Frontpage publishing .xml files to the Table of Contents.
Simply selecting 'do not publish this page" in Hyperlinks view doesn't work. ... more >>
Getting enumerations from an XSD file
Posted by Todd at 2/24/2005 6:17:03 PM
I am using an XSD to validate XML files. Within the XSD, I am storing some
simple types which are enumerations. In addition to using these XSDs to
validate XML, I would like to access the enumerations to populate some
controls on some pages. Is there any way to programatically get the
enumer... more >>
problem with WriteXml method
Posted by Dixie Guo at 2/24/2005 12:06:17 PM
Hi,
I used WriteXml() to write my data from DataSet to the file. The output
in the file is fine. However, there is one problem with my Column names
in the table. If my column name has more than two words seperated with
space, the output use "_x0020_" to connect those words.
For example, ... more >>
Overruling embedded DTD
Posted by Søren M. Olesen at 2/24/2005 11:51:18 AM
Hi
Is there a way to overrule the entity settings in an embedded DTD when using
xmlreader??
TIA
Søren
... more >>
Import XML file into dataset (C#)
Posted by Thomas Lischetzki at 2/24/2005 9:29:59 AM
Hello all together,
I have a little problem importing the following xml file into a dataset.
<?xml version="1.0" standalone="yes"?>
<logfile version = "0.1.001" >
<log date = "01.01.2005" time = "12:01:59" username = "Mueller" level =
"Info" message = "2">
<data order="1" capt... more >>
ASP to ASP.NET --- XMLHTTP error--XML document must have a top level element
Posted by juliankhan NO[at]SPAM hotmail.com at 2/24/2005 7:42:36 AM
Hi
i am converting an ASP page to ASP.NET. The original ASP code works
perfectly but in ASP.NET i am getting the error "XML document must
have a top level element."
I have checked the XML being sent and it looks exactly the same as the
live (working version). The back end code has not chang... more >>
Create an XmlDocument from XmlSerializer?
Posted by Raterus at 2/23/2005 4:38:45 PM
Hello,
This is probably a very simple question. I played around with it some =
but couldn't get it.
I'm got a custom class I'm serializing, I'm loading the results into a =
new XmlDocument. What is the best way to take the results from the =
XmlSerializer and convert it into an XmlDocumen... more >>
Implementing IXmlSerializable
Posted by Lidström at 2/23/2005 4:31:39 PM
Hello,
will this read all attributes?
void Point2D::ReadXml(Xml::XmlReader* reader)
{
//! write attributes
reader->MoveToFirstAttribute();
while( reader->ReadAttributeValue() )
reader->MoveToNextAttribute();
}
My attributes look like this:
[System::Xml::Serializa... more >>
Where is documentation for System.Xml.XPath.XPathQueryIterator
Posted by Jus Thomas at 2/23/2005 3:38:51 PM
I am trying to find documentation for the
System.Xml.XPath.XPathQueryIterater object which is being returned
internally in the .Net XSLTransform class and which I cannot find any info.
This object replaces the IXMLDomNodeList object that the MSXML4 XSL Parser
uses.
Help.
... more >>
XPath XML Statement Creator
Posted by Derek Hart at 2/23/2005 10:53:14 AM
Does anybody know of an application that will dynamically generate XPath
statements. Basically, I would use the program to click through the nodes of
an XML file, and then have some way to generate the XPath. I have looked at
Stylus Studio, but it is too pricey for just that one feature.
Th... more >>
XmlReader-to-XmlReader skips nodes?!
Posted by Philipp Schumann at 2/22/2005 8:51:05 PM
Hi,
I have the following code to copy nodes from an XML document (XmlReader
reader) to some output (XmlWriter writer).
while (reader.Read ())
if (reader.MoveToContent () == XmlNodeType.Element)
break; // forward the reader to the document element
writer.WriteStartDocument... more >>
XLink - XBRL
Posted by B at 2/22/2005 12:37:05 PM
I am working on an application which reads, writes and generates
XBRL-compliant documents. XBRL makes extensive use of XLink in creating
these documents. I have so far been unable to ascertain the current support
for XLink provided by the System.XML classes.
In short, my question is: Wh... more >>
Mapping a CSV file to an Xml Schema
Posted by Ali-R at 2/22/2005 9:05:47 AM
Hi all,
I am getting a CSV file like this from our client:
"C1","2","12344","Mr","John","Chan","05/07/1976".........
I need to validate **each filed value** against a set of rules ,for instance
for "05/07/1976" ,I need to make sure that it's in the right format ,It's
not later than today... more >>
InvalidCastException on adding schema to XmlSchemaCollection
Posted by barak.yechezkely NO[at]SPAM kla-tencor-dot-com.no-spam.invalid at 2/22/2005 1:51:57 AM
Hi all,
I am working with XSD for a while using C# objects (
XmlSchemaCollection , XmlValidatingReader) and have met this
problem:
Current code demonstrates the problem:
<xs:schema ...>
<xs:element name="Parent" type="Parent_Type" />
<xs:complexType name="Parent_Type">
... more >>
|