about xml Datasource

this is my xml :

<?xml version="1.0" encoding="utf-8"?>
<record>
<userName>
<![CDATA[this is a test]]>
</userName>

<Comments><![CDATA[this is is content and very long....]]></Comments>

</record>

datasource GetAllProductXml(REQUSETXML_URL) =>userName,Comments

http {timeout="20" expire="in 2 minutes"}
REQUSETXML_URL
simple xml
record

userName

Comments

this syntax is ok

but now output is :

<![CDATA[this is a test]]>

<![CDATA[this is is content and very long....]]>

I didn't kown why?

what's this reason?

thinks !

[925 byte] By [robin_qian] at [2008-2-1]
# 1

Hi Robin,

I'm sorry you're having problems.

I've tried to replicate your issue but couldn't. Here's what I've tried:

Code Snippet

datasource SimpleXMLFilterInlineWithCDATA() => question {expire=now}
inline
<Data>
<QUESTIONS>
<Value>aaaa<Value>
<Value><![CDATA[bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb]]></Value>
<Value>cccc</Value>
<Value>dddd</Value>
</QUESTIONS>
</Data>
simple xml
Data
QUESTIONS
Value {loop=content}
simple xml
Data
QUESTIONS
Value {loop=content}

? Launch the test for Robin.
INPUT = SimpleXMLFilterInlineWithCDATA()
- INPUT

The result returned is (as expected):

Code Snippet

aaaa
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
cccc
dddd

Can you give me more information about your setup (platform version, build number, and maybe the exact xml code that you're having trouble with)?

Thanks!

Fran?ois

FrançoisHuet-MSFT at 2007-10-2 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Agents Development...
# 2

Hi Fran?ois:

My platform version is 4.1 build1129.

I test by your code, and occur some error .

see the pictrue

Thanks robin

robin_qian at 2007-10-2 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Agents Development...
# 3

Hi Robin,

A few lines got deleted when I posted it on the forum, sorry about that. I've edited my original post so the code should now compile correctly if you want to try again. Your version of the platform supports this syntax.

It might help us troubleshoot your problem if you could post the full xml string you're trying to parse.

Thanks,

Fran?ois

FrançoisHuet-MSFT at 2007-10-2 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Agents Development...

Windows Live Developer Forums

Site Classified