From XHTML to XML

Hi Does it exist a program (not API) that create a XML from an XHTML ?E.G. I have a XHTML file and aI want the XML associated to it. I insert the xthml file (input) and output is a relative XML.Thank you in advance
[242 byte] By [puntinoa] at [2007-11-27 4:17:40]
# 1

An XHTML file already is XML. So you don't have to do anything to get XML, except maybe copy the file.

But you seem to have some idea that there is XML "associated to" an XHTML file, whatever that means. Perhaps that is something specific to the files you have there. More explanation of your question would help. An example of your required input and output would help too.

DrClapa at 2007-7-12 9:24:20 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

Ok this is my problem:

I have the file ball.xhtml

I would use Xalan, maybe you know that Xalan requires as input an XML file + XML stylesheet and the outpup can be for example xhtml file. Well

Now I have the file ball.xhtml that I write by myself with an editor but I would create it using Xalan. As said I should write ball.xml, its stylesheet put in Xalan and the result is ball.xhtml identical the one that I wrote by editor.

Because I'm little lazy I wonder if exist a programm ables to develop the ball.xml from the ball.xhtml

puntinoa at 2007-7-12 9:24:20 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3

Okay. Let me guess at the meaning of all those words.

You have an XHTML file. It could be produced by feeding some other XML file into an XSLT stylesheet. And now for some unknown reason you want to magically produce that other XML file?

That is probably wrong because it makes no sense. There are an infinite number of XML files for which you could write a stylesheet to produce the XHTML file you already have. Besides it is pointless, you already have the resulting XHTML file.

So obviously I don't understand what you are saying. Could you perhaps find somebody to make an English translation from your native language?

DrClapa at 2007-7-12 9:24:20 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...