Does XPath text() return CDATA SECTION?

Discussion in 'XML' started by Tak Sze, Apr 29, 2004.

  1. Tak Sze

    Tak Sze Guest

    If I have the following XML file,

    <test><![CDATA[text]]></test>

    does /*/text() returns "text"?

    - Tak Sze
    Tak Sze, Apr 29, 2004
    #1
    1. Advertising

  2. In article <>,
    Tak Sze <> wrote:

    > <test><![CDATA[text]]></test>
    >
    >does /*/text() returns "text"?


    Yes. From the point of view of the XPath data model, the
    document is identical to <test>text</test>.

    -- Richard
    Richard Tobin, Apr 30, 2004
    #2
    1. Advertising

  3. In article <>,
    Tak Sze <> wrote:
    % If I have the following XML file,
    %
    % <test><![CDATA[text]]></test>
    %
    % does /*/text() returns "text"?

    Yes.


    --

    Patrick TJ McPhee
    East York Canada
    Patrick TJ McPhee, Apr 30, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John Davison
    Replies:
    1
    Views:
    580
    Hal Rosser
    Jul 7, 2004
  2. CarlosRivera
    Replies:
    5
    Views:
    802
    CarlosRivera
    Jan 16, 2005
  3. Replies:
    2
    Views:
    1,707
    Richard Tobin
    Nov 27, 2003
  4. Rick Brandt
    Replies:
    0
    Views:
    421
    Rick Brandt
    Aug 19, 2004
  5. Replies:
    3
    Views:
    751
    Joe Kesselman
    Mar 6, 2006
Loading...

Share This Page