Loading ...
Sorry, an error occurred while loading the content.

XPath support in SOAP::Lite

Expand Messages
  • slowloris272000
    Hi How is SOAP::Lite path expression compatible with XPath? The manual states similar to XPath notations SOAP::Lite seems to accept these /path/to/element
    Message 1 of 2 , Nov 12, 2002
    • 0 Attachment
      Hi

      How is SOAP::Lite path expression compatible
      with XPath? The manual states 'similar to XPath
      notations'

      SOAP::Lite seems to accept these
      /path/to/element
      //allelemnts
      /branches[1]

      But not
      /branches[value=123]
      /branches[last()]
      //@someattrib
      //elementwith[@someattribs]
      //elementwith[@attributeis=123]

      Is there anyway to use full XPath expression in
      SOAP::Lite?

      regards,
      Ken
    • Paul Kulchenko
      Hi Ken, SOAP::Lite supports a subset of XPath, and while it might be possible to extend the syntax, it is not on a radar for a couple of reasons. It should be
      Message 2 of 2 , Nov 13, 2002
      • 0 Attachment
        Hi Ken,

        SOAP::Lite supports a subset of XPath, and while it might be possible
        to extend the syntax, it is not on a radar for a couple of reasons.
        It should be fairly easy to use full XPath support on a client side
        similar to DOM support. You may look at examples\getdom.pl for more
        information. It's more difficult to implement it on a server side
        (there are more methods to implement), but it's doable too. The
        support for different deserializers will be improved in the future
        (the way it is currently implemented requires you to override several
        methods of SOAP::SOM mehtod to allow calls to be dispatched
        properly).

        Best wishes, Paul.

        --- slowloris272000 <noguken@...> wrote:
        > Hi
        >
        > How is SOAP::Lite path expression compatible
        > with XPath? The manual states 'similar to XPath
        > notations'
        >
        > SOAP::Lite seems to accept these
        > /path/to/element
        > //allelemnts
        > /branches[1]
        >
        > But not
        > /branches[value=123]
        > /branches[last()]
        > //@someattrib
        > //elementwith[@someattribs]
        > //elementwith[@attributeis=123]
        >
        > Is there anyway to use full XPath expression in
        > SOAP::Lite?
        >
        > regards,
        > Ken
        >
        >
        > ------------------------ Yahoo! Groups Sponsor
        >
        > To unsubscribe from this group, send an email to:
        > soaplite-unsubscribe@yahoogroups.com
        >
        >
        >
        > Your use of Yahoo! Groups is subject to
        > http://docs.yahoo.com/info/terms/
        >
        >


        __________________________________________________
        Do you Yahoo!?
        U2 on LAUNCH - Exclusive greatest hits videos
        http://launch.yahoo.com/u2
      Your message has been successfully submitted and would be delivered to recipients shortly.