XML -> Flat
i've posted on this before, but now that i have more information.
we have this autogenerated java code from a mapping on mapforce (its a xml file). we want to stick this java code or files in a compiler (xcode) and compile it into a flat file.
(if this doesnt make sense, im sorry, but bare with me. im very new to this)
any help would be appreciative.
[378 byte] By [
n2the8xa] at [2007-11-27 11:41:41]

We asked you yesterday to clarify what you meant by "flat" file, because in this context, it makes no sense
a file used to transmit data...or still doesnt make sense?
Message was edited by:
n2the8x
> a file used to transmit data...or still doesnt make sense?
Nope, still doesn't make sense.
XML doesn't need to be "compiled" to a "flat file" (whatever that means). It's text, so you can transmit it as is, as long as you encode it properly for the transport protocol.
If you use HTTP, you'll need to put any values with "magic characters" in CDATA sections.
%
ok, sorry. see if this makes any more sense.
we have a ASCII flat file that is ran through our mapping and transformed into an XML file, that XML file is sent over the internet to our website. we want to completely take out the opening of mapforce and just use the java generated code to transform the XML code back in to an ASCII flat file.
XML is an ASCII flat file already?
no, the ASCII flat file is transformed into an XML file using a program called Mapforce
Message was edited by:
n2the8x
Yes but an XML file already is plain ASCII....
By a flat file do you mean a CSV file? I think we are all having diffculty understanding what it is you are trying to accomplish and the terms you are using to describe it.
@OP: you're not makeing it very clear what exactly you want to achiev.
Maybe a simple example would help:
- What is the original data?
- What is it transformed into?
- What to you want to make from it?
yes, i know, im sorry. im very ill-informed.
and yes, i do believe it is a .csv file
> yes, i know, im sorry. im very ill-informed.
> and yes, i do believe it is a .csv file
Why must it be a CSV file? You really need to go back to your manager or whoever and get more information out of them
> You really need to go back
> to your manager or whoever and get more information
> out of them
Indeed. We can help you with fullfilling a fully qualified requirement. But we can't help you guess the requirements.
Generally a "flat" file is one of those file formats left over from the 1970's which have a fixed record length and, within one or more types of record, fixed field lengths. These formats are still being devised to this day by IT people who are still trying to figure out how to spell COBOL.
At any rate if you want to convert (not compile) an XML document to one of those file formats, I would recommend XSLT.