1 Reply Latest reply: Feb 15, 2013 4:02 AM by Anuj Dwivedi--Oracle RSS

    xPath document identification

    Bruno Neves Alves
      Hi guys.

      I need to be able to use xPath expression to identify booth version and document type like:

      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <Envelope xmlns="http://www.example.com/B2B">
      <Message>
      <MessageIdentification VersionNumber="2"
      MessageType="ZZZ"/>
      </Message>
      </Envelope>

      Basically we can have more than one version of the same document type and we want to be able to diferenciate them.

      Something like:

      Identification Expression (XPath): //*/@MessageType="ZZZ" and //*/@VersionNumber="2"

      Already tried.

      Is there a way to assert against two values on document type identification ?

      Thanks
        • 1. Re: xPath document identification
          Anuj Dwivedi--Oracle
          Already B2B identifies both doc type and version on the basis of identification xpath (for inbound case only). Just make sure to provide unique identification xpath and/or value for each document definition and it should work.

          You may like to refer section "8.1.1 How to Configure the XPath Expression for a Custom XML Document" at -

          http://docs.oracle.com/cd/E23943_01/user.1111/e10229/b2b_documents.htm#CHDEFFEH

          Regards,
          Anuj