473,406 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Dynamically Format XML Output?

I'm currently working on a system that will allow our 175+ clients that
store their data on our databases to export the data to their systems
(via webservice) and also call other web services to update pieces of
that data in our systems.

What I need help with is the ability to format the XML from the web
service differently and dynamically. For example, every client has
completely different data and data structures; I have to make it
available for them to:

1.) Get XML with "custom" tags. For example, perhaps they need the
property to read "firstName" instead of "member_first_name", etc.

2.) Get XML in a different structure than it is displayed relationally.

3.) Receive all or just a subset of the data that is available.

What I'm planning on doing is making the client provide us with an xsd
file if they wish to customize these parameters. Whenever the web
service is called, I will have to import that client's xsd file in
order to format the output as they want it. Am I even close to being on
the right track? (I just picked up web services not too long ago.) Can
the XML output from a webservice be formatted in this way? How do I go
about importing the xsd file?
Any ideas? Suggestions? Crazy Thoughts? Help?!

Thanks.

Nov 21 '05 #1
4 2553
Opa
Hey Zion,

Hate to suggest another technology that you may not be familiar with, but
sounds like you should get familiar with XSLT. An XSLT engine allows you to
transform the XML from your web service to any format you would like.
All you need to do is create style sheets for clients that require some
specialized XML or other document formats. In my opinion, this is the best
solution for you problem.

Learning XSL can take a while. A decent book to get started on XSLT is
Beginning XSLT from Wrox (Apress).
Good Luck.

Opa

"ziondreams" wrote:
I'm currently working on a system that will allow our 175+ clients that
store their data on our databases to export the data to their systems
(via webservice) and also call other web services to update pieces of
that data in our systems.

What I need help with is the ability to format the XML from the web
service differently and dynamically. For example, every client has
completely different data and data structures; I have to make it
available for them to:

1.) Get XML with "custom" tags. For example, perhaps they need the
property to read "firstName" instead of "member_first_name", etc.

2.) Get XML in a different structure than it is displayed relationally.

3.) Receive all or just a subset of the data that is available.

What I'm planning on doing is making the client provide us with an xsd
file if they wish to customize these parameters. Whenever the web
service is called, I will have to import that client's xsd file in
order to format the output as they want it. Am I even close to being on
the right track? (I just picked up web services not too long ago.) Can
the XML output from a webservice be formatted in this way? How do I go
about importing the xsd file?
Any ideas? Suggestions? Crazy Thoughts? Help?!

Thanks.

Nov 21 '05 #2
Awesome. Thanks for the quick reply!

Nov 21 '05 #3
Awesome. Thanks for the quick reply!

Nov 21 '05 #4
OK. I've read up some on XSLT and I *think* it will work for me. Let
see if I've got this right: I'll be able to take the data returned from
the DB (in a DataSet), run that into an xml file (actually, probably
some sort of xml object as this will all be done automatically with
C#), format the xml with my xslt file (which I've already created) and
spit out the new xml from my webservice. Is that the logical process?
If so, could you (or anyone) provide me with some sample .Net code
(preferably C#) on how to do this? I've looked everywhere through these
newsgroups and I can't find any sample code on how to process this.
Thanks in advance for any help and/or input!

Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Tim Henderson | last post by:
Hi I want to dynamically generate a graph in python that would be displayable on a web page. What would be the best way to do this? The reason I want to do this, is because I am making a program...
7
by: Joe Estock | last post by:
I have been tinkering with this project that stores data into binary files. The ammount of records that it stores is not known at compile-time. For example, refer to the ZIP file structure. There...
1
by: Vince C. | last post by:
Hi all, I've created XML documents that are described with a schema. I'm using those documents to create web pages. All my web pages contain a fixed header and a variable document part. The...
16
by: sirsean | last post by:
Hi all. I'm trying to dynamically build menus and objects after my page loads. Data is stored in an XML file and is parsed at runtime into Javascript objects. At the moment, I'm working on creating...
2
by: Steve Franks | last post by:
Can someone please recommend a good way in ASP.NET 1.1 to dynamically create a HTML table to display some results I have in local variables? For example, I want my HTML output to look like this:...
4
by: Ed Jay | last post by:
I generate a DHTML page (a medical report) with dynamically generated text based on user input (answers to questions). The page length changes dynamically. I desire that when the page is printed...
11
by: skumar434 | last post by:
Hi everybody, I am faceing problem while assigning the memory dynamically to a array of structures . Suppose I have a structure typedef struct hom_id{ int32_t nod_de; int32_t hom_id;
1
by: Petyr David | last post by:
Current: web page has hard coded directories (using checkboxes) user may choose to search for files matching a pattern they enter in text box. Perl is used to search for files and to format HTML...
1
by: rrs5 | last post by:
Hello, I have a cgi program written in C++ that fork/execs a back end core engine. This engine outputs results in plain text to stdout which dumped to the browser window. I wish to format this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.