convert html file to xml file
-
hi i need to convert a html file to xml file. please help me. the part of html file is following:
Phonetics of the Names
Name: mcmillan
Phonetic: m-ai-k-m-i-l-a-n
Name: mike
Phonetic: m-aa-i-k
thanks.
-
hi i need to convert a html file to xml file. please help me. the part of html file is following:
Phonetics of the Names
Name: mcmillan
Phonetic: m-ai-k-m-i-l-a-n
Name: mike
Phonetic: m-aa-i-k
thanks.
Your HTML needs to conform to XHTML schema (http://www.w3.org/MarkUp/[^]) For example, <br> needs to be change to <br /> George
-
Your HTML needs to conform to XHTML schema (http://www.w3.org/MarkUp/[^]) For example, <br> needs to be change to <br /> George
thanks for reply my xml should look like following mcmillan m-ai-k-m-i-l-a-n mike m-aa-i-k can u give me some sample code to get this format that will be more helpful for me. thanks again.
-
thanks for reply my xml should look like following mcmillan m-ai-k-m-i-l-a-n mike m-aa-i-k can u give me some sample code to get this format that will be more helpful for me. thanks again.
No, I am not supplying you any sample code! You can do this yourself since the HTML document is text using Regular Expressions, and string and text functions of a programming language. If you want to use the XML/XSLT libraries, you must change the HTML into an XHTML document so you can parse the HMTL using XML or transform the document using XSLT. Or, you can load the text file into an editor and do it manually. Yes, I said it! Manually!
-
No, I am not supplying you any sample code! You can do this yourself since the HTML document is text using Regular Expressions, and string and text functions of a programming language. If you want to use the XML/XSLT libraries, you must change the HTML into an XHTML document so you can parse the HMTL using XML or transform the document using XSLT. Or, you can load the text file into an editor and do it manually. Yes, I said it! Manually!
thanks for valuable suggestions.