Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     parse xml data in webfocus
Go
New
Search
Notify
Tools
Reply
  
parse xml data in webfocus
 Login/Join
 
Master
posted
Hi,
Having an xml data of length 2000 and trying to parse the data in webfocus.

Anybody know how we can do this, Please let me know.

Thanks
Kamesh
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Reply With QuoteReport This Post
Guru
posted Hide Post
In 5.21 there is an XML adapter- you can create a master file from a dtd.
 
Posts: 391 | Location: California | Registered: April 14, 2003Reply With QuoteReport This Post
Master
posted Hide Post
can you explain me how we can do this?
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Reply With QuoteReport This Post
Guru
posted Hide Post
Are you in a hub-sub environment? Can you log onto your server console?
 
Posts: 391 | Location: California | Registered: April 14, 2003Reply With QuoteReport This Post
Master
posted Hide Post
hub-sub environment - ????

I'm having access to see server console.
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Reply With QuoteReport This Post
Guru
posted Hide Post
Can you go to "DATA Adapters", then "ADD", and find XML in the list of adapters available? After you add it, you can go to "Metadata" then "Add" and see the XML adapter there. You choose that and pick the directory where you have a dtd that describes the xml file. From there it will create a master file.
You should be able to find more information in the console's help screens. In my version it is under "Server Administration", "Configuring Data Adapters", "Data Adapter for XML".
 
Posts: 391 | Location: California | Registered: April 14, 2003Reply With QuoteReport This Post
Master
posted Hide Post
The XML adapter is a great feature not only can you use XML as a datasource, but webfocus can publish out data as an xml document. Just be sure that you are licensed to use it.
 
Posts: 862 | Registered: May 24, 2004Reply With QuoteReport This Post
Master
posted Hide Post
Hi,
I'm not able to do the way you mentioned bcoz we don't have DTD. We are storing xml data's in a field of varchar 2000 in DB2 database.

I'm able to retrieve the data through sql but it consists an xml tags. I want to parse this xml and get the information needed.

Thanks
Kamesh
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Reply With QuoteReport This Post
Guru
posted Hide Post
Search the IBI Knowledge Base for an article entitled:
"Reporting XML Content of a Data Source".
Also in the 5.32 documentation is:
"Create a Synonym to Access XML Documents From Relational DBMS CLOB Fields".

I haven't done this myself, but this sounds like what you are wanting to do.
 
Posts: 391 | Location: California | Registered: April 14, 2003Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Maintain had some pretty neat text manipulation capabilities. I 've used it in similar situations to construct a filters that parse long records into component parts, and store them in an appropriate structure.
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Reply With QuoteReport This Post
Master
posted Hide Post
Can we use Maintain in our regular webfocus code?
Or else do we need to add any patch on our webfocus server.
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Reply With QuoteReport This Post
Master
posted Hide Post
Maintain is part of the standard WebFOCUS server functionally - meaning, you can developed maintain apps with DevStudio and DevStudio gives you a single-use license for development.

When it's time to deploy applications that use it you will need to license it. But it's not expensive and well worth the license fee.
 
Posts: 919 | Registered: March 26, 2003Reply With QuoteReport This Post
Virtuoso
posted Hide Post
There's nothing to install (it's there in the server) -- but lot's of learning curve -- and there may be a license issue. Check with the saleman. (I cannot speak for IBI - I am no longer their employee.)

Note that Maintain has several flavors. This (data filters and transforms) is the non-persistent kind of maintain, and without any use of the presentation features (winforms).
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Reply With QuoteReport This Post
Master
posted Hide Post
Hi,
Somewhat I'm able to parse it upto some extent. I used POSIT to point some tag and from there used substring to retrieve each character occurence until I reach '<' . Then using MODIFY, I'm updating this to an table. It's working fine but if I have more records, getting an error "Out of Memory" error.

-Kamesh
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     parse xml data in webfocus

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.