Re: Custom .NET Class for Business Rule Fact

From: Matt Milner (matt.milner_at_m3technologypartners)
Date: 09/29/04


Date: Tue, 28 Sep 2004 22:07:08 -0500

Try TypedXmlDocument, this should allow you to get at the node pretty easily
and work with it in the DOM to get the inner text of the node.

matt

"NickH2472" <NickH2472@discussions.microsoft.com> wrote in message
news:B218AB49-9E52-427F-8182-0CFD29C4F68E@microsoft.com...
>I am looking to write a custom .NET class to provide a mechanism of
>returning
> the number of characters in an XML element.
>
> I have created a simple method named Length(), with one parameter
> 'sString'
> of type string. However, when I attempt to use an element in my XML
> document
> I receive the following error:
>
> "The definition <XPath to element name> is not compatible with the
> argument
> type (String)"
>
> However If I pass an attribute to the method everything works as expected.
> Can anyone advise what parameter type I should be using in my method?
> Note:
> The element in question has a base datatype of 'xs:string', Content Type
> of
> 'SimpleContent' and a Derived By value of 'Extension'.
>
> An example of my XML document structure is below.
>
> Regards, Nick
>
>
> Example:
> <order>
> <orderLines>
> <line>
> <ProductCode error="This is some error
> text">HL1450</ProductCode>
> </line>
> </orderLines>
> </order>
>
> /order/orderLines/line/ProductCode <-- Will not work as an input to the
> method
> /order/orderLines/line/ProductCode/@error <-- Will work as an input to the
> method
>
>
>



Relevant Pages

  • Custom .NET Class for Business Rule Fact
    ... of type string. ... when I attempt to use an element in my XML document ... Can anyone advise what parameter type I should be using in my method? ... An example of my XML document structure is below. ...
    (microsoft.public.biztalk.general)
  • Re: Will XML::Simple work with keys, strings, integers, and dates?
    ... I have only done a little XML processing in Perl, ... In all of the examples I have seen, the xml tags ... sub start_element ... is 'Earache My Eye ' of type string ...
    (comp.lang.perl.misc)
  • Performance issues with large ResultSet
    ... containing large amounts of data. ... rows and although the database query only takes 0.9 seconds, ... // build XML ... xmlResult is of type String, could this be causing performance issues? ...
    (comp.lang.java.programmer)
  • Re: Accessing Oracle Database - Arun , Jaiganesh
    ... Any luck on this Arun! ... XML can be send as an input parameter to SQL Server SP, ... Is there anything similar to OpenXML in Oracle to use the Input XML? ... You can use the OracleType.DateTime as the parameter type. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: XML as parameter to a method
    ... XML Data Island?!?!?!?!? ... > post an XML document, you might want to just handle the XML directly from ... > parameter need to be defined as type string? ... > I have been given an XML structure to be used in a method call and I am ...
    (microsoft.public.dotnet.framework.webservices)

Quantcast