all groups > dotnet xml > march 2006 > threads for march 22 - 28, 2006
Filter by week: 1 2 3 4 5
XmlSchemaValidator and XmlSerializer.Deserialize()
Posted by Vivek at 3/28/2006 3:46:25 PM
In an application which uses an XML file, I wish to use XmlSchemaValidator
class to validate this file against the XSD file..
In the example of msdn, (
http://msdn2.microsoft.com/en-us/library/system.xml.schema.xmlschemavalidator(VS.80).aspx )
, before initialising the XmlSchemaValidator, X... more >>
2.0 : fastest read-only forward-only loading method
Posted by John A Grandy at 3/28/2006 1:22:34 PM
In 2.0 what is the fastest way to iterate through an element set in a
read-only forward-only XMLDocument ?
For example , load the key/value pairs in the following xml doc into a
hashtable :
<Mappings>
<Mapping MappingKey="AL" MappingValue="Alabama" />
<Mapping MappingKey="CA" Map... more >>
Serializing array of objects of different types
Posted by geshas NO[at]SPAM gmail.com at 3/28/2006 9:51:15 AM
Hello,
I need to serialize/deserialize array of non-typed objects to/from such
xml:
<contents>
<resource name="res1" />
<category name="cat1" />
<resource name="res2" />
<category name="cat2" />
</contents>
So that Contents object is array that consists of Resource or Category... more >>
Using XmlDocument.Save removes previous formatting of the file
Posted by Aaron Sellers at 3/27/2006 2:03:08 PM
Hi all,
I have a nicely formatted .xml file that loses that nice formatting when
I edit it and use XmlDocument.Save to save the file. Does anyone know of
any way to keep the formatting I had when I opened the file?
Thanks!
Aaron Sellers
... more >>
Where to write XQuery statements?
Posted by Shilpa at 3/27/2006 3:54:17 AM
Where to write XQuery statements?
For eg:
doc("D:\\workArea\\Books.xml")/Books/Book/Name
... more >>
Import custom namespace in XSLT
Posted by Alok Sathaye at 3/27/2006 12:00:00 AM
Hi,
I wanted to use the <msxsl:script> tag in a XSLT and include a .Net defined
namespace. For ex: System.Web
It seems the framework 1.1 does not work in a manner mentioned in the
documentation. The framework gives me a run-time exception and does not
transform the input file
Have you... more >>
Invoke Web Service using a Client Application
Posted by Ganesh Muthuvelu at 3/26/2006 2:55:29 PM
Hi,
I have a web serivce created that contains several methods that are
NON-PRIMITIVE types - meaning I cannot test it directly from the browser. So,
I thought of devloping a client application in .NET that can submit the XML
request and receive the response.
I created the application and... more >>
Newbie: fetching XML over http
Posted by Chris at 3/26/2006 1:38:36 PM
I have an external application that returns XML in response to http
requests. I need to get the XML and process it in a 1.2 .NET/ASP/IIS
environment. I'm just getting started with .NET and know very little about
it (I'm primarily a Java developer). What's the best approach here?
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Querying in an XML file
Posted by Curious at 3/25/2006 1:14:22 AM
Hi,
I have the XML file shown below.
Now I am trying to retrieve all the 'Event' nodes using XPath. The
code being used is shown below.
The output being ouput is the data in the SubNodes given as one string.
(Output shown below)
Is there a way how to iterate through the sub-nodes(From... more >>
Testing for non-existing namespace attribute?
Posted by Lidström at 3/24/2006 4:13:17 PM
Hello!
I'm using msxml3 in the C++ environment, VC 7.1.3088. How do I know if the
namespace attribute doesn't exist? I want to put it in a std::string, and I
try to do that like this:
string CXmlNodeWrapper::GetNamespaceURI() const
{
if( IsValid() )
{
_bstr_t str = m_xmlnode-... more >>
Element order on serialization
Posted by jamie at 3/24/2006 1:24:00 PM
Here's a class I'm working with
public class BatchHeader {
public string ScaleSite;
public string FromScaleDate;
public string ToScaleDate;
public string SubmitterBatchID;
System.Xml.Serialization.XmlElementAttribute(DataType="integer")]
public string DocumentCount;
... more >>
"Show XSLT Output" in VS2005 with extended functions
Posted by Peran at 3/24/2006 6:01:02 AM
If I create a simple xslt stylesheet I can quickly test this in VS2005 by
pressing the "Show XSLT Output" button rather than running the whole solution.
If I then create a xslt stylesheet with some extended functions I have to
run the whole solution (adding the extension objects to the XsltAr... more >>
With an XmlNode from a NodeList Can you tell where you are in the original XmlDocument
Posted by dickster at 3/24/2006 4:14:57 AM
This problem was raised in another post
Assuming we have an XmlDocument (xDoc) that has a node (<dickster>)
randomly dispersed throughout the hierarchy.
eg
<root>
<A>
<B>
<C>
<dickster>1</dickster>
</C>
</B>
</A>
<D>
<dickster>2</dickster>
</D>
<E>
<F>
... more >>
Setting row color to be based on content in cells in rows in XML
Posted by vincemoon NO[at]SPAM rcn.com at 3/24/2006 4:09:34 AM
What would be the best software, and also what would be the best
programming language based solution, to solve the following problem:
I have an XML data set I reference with the usual HTML table. What I
want to do, is to give rows in the data that contain, say the word X in
column 2 a red back... more >>
wat is the best way to pass xml into Stored Procedure
Posted by SwatSoftwareDev at 3/24/2006 12:00:00 AM
Hi All,
I want to use XML technologies with SQL Server 2000 for sending master
details data from Application to SQL Server. I'm using xmldocument class for
writing data in the form of attribute centric elements. First I write data
into xmldocument (using appendchild, setattributes methods), an... more >>
Implementing xsl:message with .Net 1.1
Posted by Alok Sathaye at 3/24/2006 12:00:00 AM
Hi,
I have an XSLT which outputs an <xsl:message>
How can I handle it using .net framework 1.1
I know 2.0 has provided an event to trp the message. Is something similiar
possible in 1.1 also?
Thanks,
Alok
... more >>
Regular Expression Help
Posted by Michael Primeaux at 3/23/2006 9:53:38 PM
I'm somewhat new to regular expressions and am in need of assistance. I'd
like to match on any OBJECT, EMBED, or APPLET element nested inside an
<HTML> element. Would someone point me in the right direction for creating
such a regular expression or at least point me to the correct news group?
... more >>
Problem with document()
Posted by Lis at 3/23/2006 8:31:21 AM
Hi,
I have inconsistent behavior of document() function which I hope someone can
explain.
I have Windows Service (runs as LocalSystem) that perform some Xslt
transformation. In the stylesheet I load another Xml document using
document("http://localhost/myfile.xml") syntax. I use XmlUriRe... more >>
new line replacement in xsl:attribute value with fx2.0
Posted by Carlo Folini at 3/23/2006 1:30:29 AM
Hi,
I have the following xsl:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="/">
<a>
<xsl:attribute name="href">
pippo
</xsl:attribute>
</a>... more >>
serialization in compact frame not listing some elements
Posted by jamie at 3/22/2006 1:35:28 PM
OK I'm not sure how explain this without giving hundreds of lines of code.
basically I have a main class that I want to serialize. It's constructor
creates more classes that I also want serialized.
public Mainclass{
public subclass1 class1;
public MainClass()
{
class1 = new... more >>
XSD One Multiple element question
Posted by Victor at 3/22/2006 6:50:30 AM
Hi,
I am trying to define a Key element for a vehicle schema. I have three ways
to uniquely identify a vehicle such as URN, UnitID and Vin.
I'd like to make a rule that ensures that at least one of the three is
present, but 2 or all 3 can be present. I tried something like below, but it
... more >>
|