How to Copy XPath

The XML Schema definition (XSD) language provides the underlying syntax of the message schemas defined within BizTalk Server. Although the tree views in BizTalk Mapper use a BizTalk-specific graphical hierarchy of record and field nodes (among other types of nodes), each with its own set of properties, such hierarchies are constructed and persisted as XSD.

In scenarios where maps are complex and span across grid pages, locating the parent of a schema node can be difficult. The XSD path will be of use here. You can use the XSD path to get information about the depth of schema nodes. Also, you can reuse this path in another grid page to identify the relationship.

Prerequisites

These instructions require that BizTalk Mapper is running.

To copy the XSD path (XPath)

  1. Right-click the schema node for which you want the XSD path, and then click Copy XPath.

  2. Open a text editor. On the Edit menu, click Paste. You can now see the XSD path.

    Note

    Alternatively, you can press CTRL+V to paste the path in a text editor.

    The code below displays the XSD path for the selected schema node.

    /*[local-name()='<Schema>']/*[local-name()='Shipment']/*[local-name()='DataCollection']  
    

See Also

Using Enhanced Features in BizTalk Mapper
How to Replace Schemas
How to Expand and Collapse the Schema Trees