Find the answer to your Linux question:
Results 1 to 2 of 2
With JavaScript, how can I write to an XHTML document?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Engineer
    Join Date
    Jan 2005
    Location
    Chicago (USA)
    Posts
    1,028

    equivalent of document.write in HTML DOM for XML DOM


    With JavaScript, how can I write to an XHTML document?

  2. #2
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    You cannot, since once the XML is parsed, the textual representation of it is discarded, and only the abstract data structure is kept. Therefore, you'll have to manipulate the document using the DOM methods instead.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •