PC Review


Reply
Thread Tools Rate Thread

bind to xml innertext and attribute

 
 
=?Utf-8?B?d2VyRA==?=
Guest
Posts: n/a
 
      23rd Aug 2006
Hello,
Ive run into this issue a few times and Im wondering if there's anything i
can do to get around it.
Say i have an xml file like this


<data>
<info category="1" name="Original Effective Date" type="" caption=""
notes=""><![CDATA[1-1-84]]></info>
</data>

If i create an xml datasource with a xpath like /data/info

i receive the fields category,name,type,caption,and notes but no Inner
Text.. Normally i would just store the value as an attribute but as you can
see im using cdata b/c of popssibly malformed html at times. Im not sure how
i would bind the field as it doesnt give me an option for it. Is there any
thing i can do to resolve this?

Thanks in advance
DrewG

 
Reply With Quote
 
 
 
 
=?Utf-8?B?d2VyRA==?=
Guest
Posts: n/a
 
      25th Aug 2006
It turns out that this is available. You simply need to add a column or
template item and use <%#Xpath(".")%> or a similar expression to get the
results from the desired nodes.

Thanks
DrewG

"werD" wrote:

> Hello,
> Ive run into this issue a few times and Im wondering if there's anything i
> can do to get around it.
> Say i have an xml file like this
>
>
> <data>
> <info category="1" name="Original Effective Date" type="" caption=""
> notes=""><![CDATA[1-1-84]]></info>
> </data>
>
> If i create an xml datasource with a xpath like /data/info
>
> i receive the fields category,name,type,caption,and notes but no Inner
> Text.. Normally i would just store the value as an attribute but as you can
> see im using cdata b/c of popssibly malformed html at times. Im not sure how
> i would bind the field as it doesnt give me an option for it. Is there any
> thing i can do to resolve this?
>
> Thanks in advance
> DrewG
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
innertext a Microsoft Access Form Coding 0 23rd Mar 2009 02:47 PM
InnerText in an XML file tshad Microsoft C# .NET 6 29th Mar 2008 12:08 AM
Extracting innertext and attribute using XmlSerializer kishore Microsoft C# .NET 4 6th Feb 2007 09:02 PM
XmlNode.InnerText =?Utf-8?B?ZGx5bGU=?= Microsoft Dot NET Framework 0 11th Nov 2005 09:24 PM
innerText of xml doc martin Microsoft ASP .NET 6 6th Mar 2004 11:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:50 AM.