Advanced Customization > Info*Engine User’s Guide > Display Webject Reference > Display Webjects for HTML > Display-XML
  
Display-XML
DESCRIPTION
Displays an XML formatted page of the specified group that is currently in the VDB. The webject provides an alias for a direct call to the task processor. The output of the webject is identical to using the URL:
http://machine/Windchill/servlet/IE/tasks/infoengine/taskname
This URL assumes that the Info*Engine application URL task prefix is /Windchill/servlet/IE/tasks.
* 
Do not include any HTML tags on the JSP page containing this webject, and include only one occurrence of the webject on a page, as additional output from the JSP page corrupts the XML syntax.
SYNTAX
<ie:webject name="Display-XML" type="DSP">
  <ie:param name="GROUP_IN" data="group_name"/>
  <ie:param name="MODE" data="[FULL | BRIEF]"/>
</ie:webject>
PARAMETERS
Required
Select
Optional
GROUP_IN
MODE
GROUP_IN
Identifies the name of the group to be used as an input source. The group can be a VDB group or a Context group. For further information about groups, see Info*Engine Data Management.
Multiple values can be specified for this parameter. The default for this parameter is to use all groups in the VDB. This parameter is optional.
MODE
Specifies whether metadata is included in the generated XML stream. Specifying FULL includes metadata at all levels of the XML stream.
The default for this parameter is BRIEF. This parameter is optional.
EXAMPLES
The following Display-XML webject example assume an input group containing multiple elements; each with a name, address and email attribute value:
For an example that shows the XML output using MODE set to FULL, see the Set-Metadata webject.
Webject
<%@page language="java"
  session="false"
  errorPage="../IEError.jsp"%>
<%@ taglib uri=http://www.ptc.com/infoengine/taglib/core
                                                 prefix="ie" %>
<ie:task uri="com/company/CreateGroup.xml"/>
<ie:webject name="Display-XML" type="DSP"/>
Generated XML
<?xml version="1.0" encoding="UTF-8"?>
<wc:COLLECTION xmlns:wc="http://www.ptc.com/infoengine/1.0">
<EmployeeData NAME="createdgroup" TYPE="Object" STATUS="0">
  <wc:INSTANCE>
    <NAME>Sam Johnson</NAME>
    <ADDRESS>1234 Main St.</ADDRESS>
    <EMAIL>sjohnson@somewhere.com</EMAIL>
  </wc:INSTANCE>
  <wc:INSTANCE>
    <NAME>Harvy Anderson</NAME>
    <ADDRESS>1234 Amber St.</ADDRESS>
    <EMAIL>handerson@somewhere.com</EMAIL>
  </wc:INSTANCE>
  <wc:INSTANCE>
    <NAME>James O&apos;Connor</NAME>
    <ADDRESS>775 Main St.</ADDRESS>
    <EMAIL></EMAIL>
  </wc:INSTANCE>
  <wc:INSTANCE>
    <NAME>Harvey Hampton</NAME>
    <ADDRESS>775 Main St.</ADDRESS>
    <EMAIL>hhampton@somewhere.com</EMAIL>
  </wc:INSTANCE>
</EmployeeData>
</wc:COLLECTION>