How can I make my existing html files work in xml?



How can I make my existing html files work in xml?..

Answer / Akash Kumar Varshney

It is not straightforward to convert HTML files directly into valid XML, as HTML has looser syntax rules than XML. However, you can parse the HTML using libraries like BeautifulSoup or JSOM (for JavaScript) and then reformat it according to XML syntax.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More XML XSLT RSS Interview Questions

What is an rss feed for a blog?

1 Answers  


How xml is useful in defining data for web applications?

1 Answers  


How do start a podcast?

1 Answers  


What is the use of namespace in xml?

1 Answers  


Can I use xml instead of html?

1 Answers  


What is dtd used for?

1 Answers  


How does xslt transformation work?

1 Answers  


How to write a minimum atom 1.0 feed file?

1 Answers  


What is dtd example?

1 Answers  


Is xml used anymore?

1 Answers  


Which is better xml or html?

1 Answers  


What is the difference between dtd and xml schema?

1 Answers  


Categories