Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Newbie question

Hi all.

i was wondering about Generating XML based on a trace file.

currently we using a software that produce a trace file based on the user input , (a simple text)

we are interesting of creating a mapper to convert the trace file int XML , which then can be send to the user

and on the other side recive the user input and convert it to the software argument.

we using linux webServer.

my questions are :

1.how to start?

2. what script language should i use to Generating the XML document?

3. what other considuration i need to know when converting between a simple text file to xml ?
[675 byte] By [haplo_] at [2007-11-11 8:47:58]
# 1 Re: Newbie question
One possibility:

1. Create a suitable DTD/XML Schema that defines the document structure you need.
2. Perl and PHP both offer good XML support.
3. The data must be well-formed; ideally the data should be valid (and its validity checked on receipt); always use UTF-8, especially on Linux. Use the parser that best suits your needs. On Linux, you're probably best off using Libxml2, but if your files are huge and you're not concerned about validity, Expat destroys the competition.
geralds at 2007-11-11 23:28:33 >