$html to xml

Allows you to convert HTML to XML.


Example

Running this code will convert the following HTML code to XML:

<!DOCTYPE html> <html> <body>  <h1>My First Heading</h1>  <p>My first paragraph.</p> <img src="https://www.w3schools.com/html/w3schools.jpg" alt="W3Schools.com" width="104" height="142"> <p>This is a paragraph.</p> <p>This is a paragraph.</p> <p>This is a paragraph.</p> </body> </html>

This is shown in the alert box.

alert($plugin function("Document Automation.dll", "$html to xml", "<!DOCTYPE html> <html> <body>  <h1>My First Heading</h1>  <p>My first paragraph.</p> <img src=\"http://www.w3schools.com/html/w3schools.jpg\" alt=\"W3Schools.com\" width=\"104\" height=\"142\"> <p>This is a paragraph.</p> <p>This is a paragraph.</p> <p>This is a paragraph.</p> </body> </html>"))

Was this helpful?

Previous Article

$html to xhtml