Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Read XML files

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Read XML files
 Login/Join
 
Gold member
posted
Can anyone give me an example of how to read XML files through webfocus.

This message has been edited. Last edited by: Kerry,
 
Posts: 71 | Registered: April 17, 2009Report This Post
Virtuoso
posted Hide Post
There is a good document here. In its simplest form, an xml file, demo.xml:
<?xml version="1.0" encoding="ISO-8859-1"?>

<overview>

<detail>

  <commonname>name required</commonname>
  <commonid>code001</commonid>

  <row>
    <name>name_one</name>
    <display>Name One</display>
    <description>Name One Description</description>
    <type>type one</type>
    <number>10</number>
  </row>

  <row>
    <name>name_two</name>
    <display>Name Two</display>
    <description>Name Two Description</description>
    <type>type two</type>
    <number>11</number>
  </row>

</detail>

</overview>
with an mfd
FILENAME=demo, SUFFIX=XML, $

SEGMENT=OVERVIEW, SEGTYPE=S0, $
 FIELDNAME=OVERVIEW, ALIAS=overview, USAGE=A1, ACTUAL=A1,$

SEGMENT=DETAIL, SEGTYPE=S0, PARENT=OVERVIEW, $
 FIELDNAME=DETAIL, ALIAS=detail, USAGE=A1, ACTUAL=A1,$
 FIELDNAME=COMMONNAME, ALIAS=commonname, USAGE=A40, ACTUAL=A40,$
 FIELDNAME=COMMONID, ALIAS=commonid, USAGE=A8, ACTUAL=A8,$

SEGMENT=ROW, SEGTYPE=S0, PARENT=DETAIL, $
 FIELDNAME=ROW, ALIAS=row, USAGE=A1, ACTUAL=A1,$
 FIELDNAME=NAME, ALIAS=name, USAGE=A24, ACTUAL=A24, $
 FIELDNAME=DISPLAY, ALIAS=display, USAGE=A80, ACTUAL=A80, $
 FIELDNAME=DESCRIPTION, ALIAS=description, USAGE=A120, ACTUAL=A120, $
 FIELDNAME=TYPE, ALIAS=type, USAGE=A20, ACTUAL=A20, $
 FIELDNAME=NUMBER, ALIAS=number, USAGE=I4, ACTUAL=A4, $
and a simple fex:
-* File demo.fex
XMLDEF DEMO DISK demo.xml
-RUN
TABLE FILE DEMO
PRINT COMMONNAME COMMONID NAME DISPLAY DESCRIPTION TYPE NUMBER 
END


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Platinum Member
posted Hide Post
Hi Jan1,

1) Go to WebFocus Reporting Server Console, install XML adapter.

2) Copy your XML file into wfs folder.

3) Create a MFD for your XML.

4) In the procedure, drag and drop all the fields which you would like to displayed on your report.


WebFOCUS 7.6.4, Mainframe Focus
Windows XP, All Output Formats
 
Posts: 135 | Registered: November 30, 2010Report This Post
Expert
posted Hide Post
Remember you have to be licensed for the XML adapter, unless you are using Developer Studio.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
Ya Waz i forgot to mention that point, thanks for posting Smiler


WebFOCUS 7.6.4, Mainframe Focus
Windows XP, All Output Formats
 
Posts: 135 | Registered: November 30, 2010Report This Post
Master
posted Hide Post
Just to change the discussion a little bit. If one has the XML adapter, could one do this?

1. Create .mas from an .xsd file (XML Schema) and
2. Use MODIFY or MAINTAIN to create an XML file.

For example, say I wanted to convert the CAR file to an XML file where someone provided the schema carxml.xsd.

Would adapter let one create a master from carxml.xsd named carxml.mas. Then, could one dump the CAR file and use MODIFY or MAINTAIN to load carxml.xml?


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Read XML files

Copyright © 1996-2020 Information Builders