Click here to Skip to main content
14,843,944 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: XML Database Pin
Stuart Dootson1-Feb-10 3:05
professionalStuart Dootson1-Feb-10 3:05 
Questionparsing problem Pin
trioum27-Jan-10 23:38
Membertrioum27-Jan-10 23:38 
QuestionCan I store media within an XML file? Pin
EvanSaunders27-Jan-10 3:42
MemberEvanSaunders27-Jan-10 3:42 
AnswerRe: Can I store media within an XML file? Pin
SeMartens27-Jan-10 20:22
MemberSeMartens27-Jan-10 20:22 
GeneralRe: Can I store media within an XML file? Pin
EvanSaunders31-Jan-10 21:05
MemberEvanSaunders31-Jan-10 21:05 
GeneralRe: Can I store media within an XML file? Pin
SeMartens31-Jan-10 21:10
MemberSeMartens31-Jan-10 21:10 
GeneralRe: Can I store media within an XML file? Pin
EvanSaunders31-Jan-10 23:40
MemberEvanSaunders31-Jan-10 23:40 
QuestionBest practice to handle processing XML files with different schemas Pin
sking7227-Jan-10 3:01
Membersking7227-Jan-10 3:01 
I am writing a program that will be processing XML files. There are roughly 5 schemas involved. I should tell you now that I'm not using C# but a language called ABAP (SAP), although I think that's largely irrelevant.

The pseudocode for how this works is as follows:

OPEN FILE file AS TEXT.<br />
<br />
WHILE NOT EOF<br />
<br />
     APPEND LINE OF file INTO xml_string.<br />
<br />
END.<br />
<br />
CALL TRANSFORMATION my_transformation USING xml_string INTO my_table.


Originally, there was just one schema and one transformation (a transformation is a small program in SAP that is used to take the XML string and turn it into something called an "internal table" - think of it as a DataTable for you C# developers).

Now that we've got different schemas, however, I need a way to know which one to call based upon the type of file. I've thought of two ways but if someone else has a better idea I'd love to know!

1) Use something in the filename to indicate the type of schema
2) Use an attribute in the root element to indicate the file type:


<envelope ftype='terminations'>
...
</envelope>

Unfortunately, with this approach I'd have to parse the first line of the file manually in my program as ABAP doesn't natively handle XML files very easily so it would be less work to do that. So, I'm leaning that way but I wanted a second opinion.

Thanks in advance.
AnswerRe: Best practice to handle processing XML files with different schemas Pin
Stuart Dootson27-Jan-10 20:33
professionalStuart Dootson27-Jan-10 20:33 
Question.net XMLSerializer - multiple namespace problem Pin
AndyPeacock27-Jan-10 2:49
MemberAndyPeacock27-Jan-10 2:49 
AnswerRe: .net XMLSerializer - multiple namespace problem Pin
SeMartens27-Jan-10 20:25
MemberSeMartens27-Jan-10 20:25 
GeneralRe: .net XMLSerializer - multiple namespace problem Pin
AndyPeacock27-Jan-10 21:58
MemberAndyPeacock27-Jan-10 21:58 
QuestionSOAP C# Tutorial/Example Pin
ffowler26-Jan-10 10:32
Memberffowler26-Jan-10 10:32 
AnswerRe: SOAP C# Tutorial/Example Pin
SeMartens26-Jan-10 20:43
MemberSeMartens26-Jan-10 20:43 
GeneralRe: SOAP C# Tutorial/Example Pin
ffowler27-Jan-10 2:05
Memberffowler27-Jan-10 2:05 
Questionadd element unique Id XSLT Pin
mvujica18-Jan-10 5:43
Membermvujica18-Jan-10 5:43 
AnswerRe: add element unique Id XSLT Pin
mvujica19-Jan-10 5:13
Membermvujica19-Jan-10 5:13 
QuestionXML file compression Pin
dalbhide bipin18-Jan-10 1:28
Memberdalbhide bipin18-Jan-10 1:28 
AnswerRe: XML file compression Pin
mvujica18-Jan-10 5:51
Membermvujica18-Jan-10 5:51 
GeneralRe: XML file compression Pin
dalbhide bipin18-Jan-10 18:18
Memberdalbhide bipin18-Jan-10 18:18 
QuestionI need an ebay program Pin
totolcm13-Jan-10 2:26
Membertotolcm13-Jan-10 2:26 
AnswerRe: I need an ebay program Pin
JustWorking13-Jan-10 2:43
MemberJustWorking13-Jan-10 2:43 
GeneralRe: I need an ebay program Pin
Ashfield14-Jan-10 1:26
MemberAshfield14-Jan-10 1:26 
JokeRe: I need an ebay program [modified] Pin
The Man from U.N.C.L.E.14-Jan-10 6:43
MemberThe Man from U.N.C.L.E.14-Jan-10 6:43 
QuestionUsing unparsed entities in schemas Pin
rusgregor12-Jan-10 21:46
Memberrusgregor12-Jan-10 21:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.