Re: How to get the DOM from a XML page





On Nov 27, 11:54 am, "novos...@xxxxxxxxxxxxxx"
<novos...@xxxxxxxxxxxxxx> wrote:
Hello guys,
I want to get the DOM of an XML page.for eg:an XML
page, being converted from HTML using Tidy,is:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<meta name="generator" content=
"HTML Tidy for Windows (vers 14 February 2006), seewww.w3.org">
<title></title>
</head>
<body>
</body>
</html>

Excuse me stating the obvious but that's not XML, it's HTML. It's tidy
HTML but still HTML. IIRC it's possible to instruct "tidy" to emit
xhtml (which is XML).

.



Relevant Pages

  • Re: onclick - reassign new function with parameters after displaye
    ... It creates an HTML document which looks and acts correctly. ... The orginal XSL is creating a record that shows data from two different ... The form reads in those global variables. ... XML Node that forms the context of your little XSL. ...
    (microsoft.public.scripting.jscript)
  • Re: onclick - reassign new function with parameters after displaye
    ... As far as XML data, it is not on the client side, and my limted ... as global parameter the info I need to get correct record from HTML, ... needed into XSL proscessing. ... The form reads in those global variables. ...
    (microsoft.public.scripting.jscript)
  • Re: ruby html (or xhtml) forms class...
    ... xx is a library designed to extend ruby objects with html, xhtml, and xml ... xml or xhtml as clean looking and natural as ruby it self. ... attributes may be passed to any tag method as either symbol or string. ...
    (comp.lang.ruby)
  • Re: Savings as XML document to be used on a website_office2008.
    ... to add the information that HTML cannot describe. ... In DreamWeaver, you would have two choices: ... XML is another variation altogether.And has nothing to do with Fix Word ... This is the default file format. ...
    (microsoft.public.mac.office.word)
  • Re: Simple allowing of HTML elements/attributes?
    ... >> You could require valid XML, and use a validating XML parser to ... check that HTML tags in a CDATA block get quoted). ... I imagine that the library version of tidy ... def startElement(self, elemname, attrs): ...
    (comp.lang.python)