all groups > dotnet xml > recent posts
Converting MSXML2 to System.Xml: transformNodeToObject functionality?
Posted by Ed Bates at 1/16/2008 12:53:40 PM
Hello.
I'm attempting to convert an XML wrapper class from VB6 (using MSXML2) to .NET (using System.Xml). For my TransformDocument method, the MSXML2 code uses the transformNodeToObject method for XSL transformation, using DOMDocument30 objects for the target and both parameters. In System.Xml,... more >>
RE: XmlBookmarkReader bug using ReadSubtree
Posted by Jason Mueller at 11/15/2007 12:17:35 PM
I realize that this comes a LONG time after the original post, but I just ran into this problem and made a minor tweak to the XmlBookmarkReader source that /seems/ to have fixed the problem. I have NOT tested this fix outside of a very quick run through with the code that was previously exhibiting ... more >>
Re: Is there any way to give xsl in C# a hint as to how large the resulting document will be so that it preallocates more efficiently?
Posted by Martin Honnen at 11/2/2007 12:00:00 AM
DR wrote:
> Is there any way to give xsl in C# a hint as to how large the resulting
> document will be so that it preallocates more efficiently?
C# uses System.Xml.XslCompiledTransform with .NET 2.0 or later and
System.Xml.Xsl.XslTransform in .NET 1.x. I don't know of any settings or
prop... more >>
Is there any way to give xsl in C# a hint as to how large the resulting document will be so that it preallocates more efficiently?
Posted by DR at 11/1/2007 3:45:28 PM
Is there any way to give xsl in C# a hint as to how large the resulting
document will be so that it preallocates more efficiently?
... more >>
Re: how to force a .net application to use .net 2.0 ?
Posted by Hans Olav Stjernholm at 11/1/2007 3:34:08 PM
Hi. As far as I know, the exe-files compiled to .net 1.x will always be tied
to that 1.x runtime.
Making the service run in 2.0 can be done, but why would you want to?
One way to do it would be to make a new service that depends on the former
exe-file and just simply uses the methods and such ... more >>
How to have a choice and sequence in xsd schema
Posted by Jeremy at 11/1/2007 1:57:14 PM
How can one use a choice and a sequence group in the same schema?
I have 2 child elements that can appear once each but in any order, and 2
child elements that can appear any number of times.
eg
<example>
<child1>Any order, appear once</child1>
<chid2>Any order, appear once</chi... more >>
xml schema, order unimportant
Posted by Jeremy at 11/1/2007 11:17:36 AM
I've got some xml that looks like this:
<root>
<name></name>
<id></id>
<section>
<question></question>
<question></question>
</section>
<section>
<question></question>
</section>
</root>
name and id must appear and my appear in any orde... more >>
Re: What is the fastest possible xsl style sheet to add another <box> node under <boxes> ?
Posted by Oleg Tkachenko [MVP] at 11/1/2007 12:00:00 AM
DR wrote:
> What is the fastest possible xsl style sheet to add another <box> node under
> <boxes> ?
>
> <foo>
> <car></car>
> <boxes>
> <box id="234" />
> <box id="75" />
> </boxes>
> </foo>
>
> here is what i want it to look like after the xsl adds another box node:
>
> <f... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Re: Fastest way to move XML document into and back out of CLR function
Posted by Oleg Tkachenko [MVP] at 11/1/2007 12:00:00 AM
DR wrote:
> Fastest way to move XML document into and back out of CLR function
>
> In SQL Server 2005 and Visual Studio 2005, what is the fastest way to pass
> an xml data type variable into a C# CLR function and retrieve it back out of
> the C# CLR function when the C# CLR function is done ... more >>
What is the fastest possible xsl style sheet to add another <box> node under <boxes> ?
Posted by DR at 10/31/2007 7:42:47 PM
What is the fastest possible xsl style sheet to add another <box> node under
<boxes> ?
<foo>
<car></car>
<boxes>
<box id="234" />
<box id="75" />
</boxes>
</foo>
here is what i want it to look like after the xsl adds another box node:
<foo>
<car></car>
<boxes>
<box id=... more >>
Fastest way to move XML document into and back out of CLR function
Posted by DR at 10/31/2007 6:41:44 PM
Fastest way to move XML document into and back out of CLR function
In SQL Server 2005 and Visual Studio 2005, what is the fastest way to pass
an xml data type variable into a C# CLR function and retrieve it back out of
the C# CLR function when the C# CLR function is done modifying it?
I tr... more >>
Re: Reading and Writing to Config Files
Posted by Martin Honnen at 10/31/2007 3:37:48 PM
Mick Walker wrote:
> I have a situation where I need to read another applications .config
> file. I will have to add new nodes to various parts of the config file.
> (It is actually the IIS 7 applicationHost.config file)
>
> I am using C# to do this.
>
> What would be the best way to ap... more >>
Re: How to search against XML files in the file system?
Posted by Oleg Tkachenko at 10/30/2007 9:55:41 PM
clintonG wrote:
> "Oleg Tkachenko [MVP]" <some@body.com> wrote in message
> news:%23l24%23kUGIHA.1188@TK2MSFTNGP04.phx.gbl...
>> clintonG wrote:
>>> Putting the search textbox on the page is the easy part. What's preferred
>>> way to find terms in XML files located on the file system?
>>> Li... more >>
Reading and Writing to Config Files
Posted by Mick Walker at 10/30/2007 9:53:51 PM
Hi Everyone,
I have a situation where I need to read another applications .config
file. I will have to add new nodes to various parts of the config file.
(It is actually the IIS 7 applicationHost.config file)
I am using C# to do this.
What would be the best way to approach something lik... more >>
Re: easy question - empty element?
Posted by Oleg Tkachenko at 10/30/2007 9:49:31 PM
Joe Fawcett wrote:
> "Oleg Tkachenko [MVP]" <some@body.com> wrote in message
> news:eaLg44uGIHA.1184@TK2MSFTNGP04.phx.gbl...
>> Valery wrote:
>>> In the following XML:
>>>
>>> <?xml version="1.0" encoding="utf-8" ?>
>>> <Plcy service="ILiability" boId ="LifePolicy, 1">
>>> <Prem service=... more >>
SOAP Envelope Header
Posted by broersen at 10/30/2007 8:34:42 PM
Hello,
Does someone know how to create manually the header for an SOAP message, =
without having an WSDL?
I also use an X509 certificate for connecting to the webservice. Can =
anyone help me to get on the right road.
I have to talk to an old Java webservice, so that's why I don't have an =... more >>
Re: How to search against XML files in the file system?
Posted by clintonG at 10/30/2007 7:54:11 PM
"Oleg Tkachenko" <foo@dummy.com> wrote in message
news:uFklS7yGIHA.1208@TK2MSFTNGP05.phx.gbl...
> clintonG wrote:
>> "Oleg Tkachenko [MVP]" <some@body.com> wrote in message
>> news:%23l24%23kUGIHA.1188@TK2MSFTNGP04.phx.gbl...
>>> clintonG wrote:
>>>> Putting the search textbox on the page ... more >>
Re: easy question - empty element?
Posted by Valery at 10/30/2007 4:31:02 PM
On Oct 31, 6:49 am, Oleg Tkachenko <f...@dummy.com> wrote:
> Joe Fawcett wrote:
> > "Oleg Tkachenko [MVP]" <s...@body.com> wrote in message
> >news:eaLg44uGIHA.1184@TK2MSFTNGP04.phx.gbl...
> >> Valery wrote:
> >>> In the following XML:
>
> >>> <?xml version="1.0" encoding="utf-8" ?>
> >>> <P... more >>
xmltype and generics
Posted by motylik at 10/30/2007 4:23:01 PM
I want to expose my classes via web services in a different format. Using
XmlAttributeAttribute and XmlElementAttribute works fine. But XmlType does
not in all cases.
If I have a class decl:
[XmlType("externalFoo")]
public class InternalFoo {}
the schema generated is just fine for pu... more >>
Re: easy question - empty element?
Posted by Joe Fawcett at 10/30/2007 4:18:56 PM
"Oleg Tkachenko [MVP]" <some@body.com> wrote in message
news:eaLg44uGIHA.1184@TK2MSFTNGP04.phx.gbl...
> Valery wrote:
>> In the following XML:
>>
>> <?xml version="1.0" encoding="utf-8" ?>
>> <Plcy service="ILiability" boId ="LifePolicy, 1">
>> <Prem service="IPremium" boId ="RegularPremi... more >>
How is fastest way to construct an XML node then a bunch of slow xquery
Posted by DR at 10/30/2007 1:47:11 PM
How is fastest way to construct an XML node then a bunch of slow xquery
modify statements?
This SQL Server 2005 logic is rather slow to simply add a new item to an xml
document. Any way to do this all in one statement and faster for creating a
new node without having to re-select to set the at... more >>
Decimal Serialization Inconsistency?
Posted by James Koch at 10/30/2007 1:38:53 PM
I must be missing something here...
The inconsistency described below is minorly annoying in a current
project. Can anyone come up w/ an explanation?
I've got two seemingly identical object graphs which serialize to
XML. Each has some decimal properties, ex:
class Widget
{
public d... more >>
Re: How to search against XML files in the file system?
Posted by clintonG at 10/30/2007 12:17:45 PM
"Oleg Tkachenko [MVP]" <some@body.com> wrote in message
news:%23l24%23kUGIHA.1188@TK2MSFTNGP04.phx.gbl...
> clintonG wrote:
>> Putting the search textbox on the page is the easy part. What's preferred
>> way to find terms in XML files located on the file system?
>> Like finding stuff saved ... more >>
easy question - empty element?
Posted by Valery at 10/30/2007 12:31:29 AM
In the following XML:
<?xml version="1.0" encoding="utf-8" ?>
<Plcy service="ILiability" boId ="LifePolicy, 1">
<Prem service="IPremium" boId ="RegularPremium, 1"></Prem>
<L1 service="ILifeMain" type = "Life1">
<FirstName>Sheila</FirstName>
<Age>65</Age>
<Relation... more >>
Re: easy question - empty element?
Posted by Oleg Tkachenko [MVP] at 10/30/2007 12:00:00 AM
Valery wrote:
> In the following XML:
>
> <?xml version="1.0" encoding="utf-8" ?>
> <Plcy service="ILiability" boId ="LifePolicy, 1">
> <Prem service="IPremium" boId ="RegularPremium, 1"></Prem>
> <L1 service="ILifeMain" type = "Life1">
> <FirstName>Sheila</FirstName>
> ... more >>
Re: easy question - empty element?
Posted by Joe Fawcett at 10/30/2007 12:00:00 AM
"Valery" <valerka@gmail.com> wrote in message
news:1193729489.574179.233940@k79g2000hse.googlegroups.com...
> In the following XML:
>
> <?xml version="1.0" encoding="utf-8" ?>
> <Plcy service="ILiability" boId ="LifePolicy, 1">
> <Prem service="IPremium" boId ="RegularPremium, 1"></Prem>
>... more >>
Re: XML storage of Form data
Posted by Martin Honnen at 10/29/2007 4:13:10 PM
Namshub wrote:
> I'm looking at storing data from an aspx form in an XML document, but what I
> was looking into was how to reload the form, and populate the items from the
> XML document, into their relevant server controls.
>
> I have come across the XSL document but have not really seen... more >>
XML storage of Form data
Posted by Namshub at 10/29/2007 2:53:06 PM
Hi,
I'm looking at storing data from an aspx form in an XML document, but what I
was looking into was how to reload the form, and populate the items from the
XML document, into their relevant server controls.
I have come across the XSL document but have not really seen it in use with
an ... more >>
Re: How to deserialize with several namespaces
Posted by Julien Sobrier at 10/29/2007 7:54:10 AM
Martin Honnen wrote:
> Julien Sobrier wrote:
>
>> Any idea what to do?
>
> Either show us the XML you are trying to deserialize or try yourself to
> use the xsd.exe tool from the .NET framework SDK, using that tool you
> can infer a schema first and then infer .NET C# or VB.NET code. That
... more >>
Re: How to deserialize with several namespaces
Posted by Martin Honnen at 10/29/2007 12:00:00 AM
Julien Sobrier wrote:
> Any idea what to do?
Either show us the XML you are trying to deserialize or try yourself to
use the xsd.exe tool from the .NET framework SDK, using that tool you
can infer a schema first and then infer .NET C# or VB.NET code. That
code can the be used with XmlSer... more >>
|