Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML Element Mapping Question 1

Status
Not open for further replies.
Apr 13, 2001
4,475
US
I must have missed something. Let's say I want to do B2B in some community, and they have an interchange standard using XML and they've issued DTDs or schemas for the messages, payloads, whatever you wanna call 'em that we must interchange. But what if my back-end (software, DB, etc.) uses private names for the same things they have defined XML elements for, or maybe the stuff is represented differently on my end ("we" send/receive 0/1, "I" store booleans)?

There seem to be snazzy tools to parse or even generate the XML based on the schema, but the "inside" representation ends up as, say, a recordset using the derned XML element IDs and representations.

Is there some convention to handle the remappings for me, or am I supposed to parse the incoming XML to a recordset or whatever and then write a lot of transformation code by hand to take it from there and get it into a form I can use directly with existing applications in my middle and database tiers?
 
can't you use xslt to apply the apporpriate 'mapping' style-sheet and then transform the data into the required format. Mark Saunders :)
 
I think that was where I went wrong, thinking of XSL/XSLT as a vehicle for transforming XML to HTML, etc. Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top