Results 1 to 9 of 9

Thread: removing a line from xml file created thr' code

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2008
    Posts
    73

    removing a line from xml file created thr' code

    a xml file is created thr' code using vb6.0 & parsed for validation using sax parser
    when paarsing due to line formating
    <?xml version="1.0" encoding="utf-8" standalone="yes" ?> gets appended to the existing data at the start of the file ie the first line
    is there any way that it culd be deleted programatically

    i tried thi smethod
    Dim xmldom1 As MSXML2.DOMDocument40
    xmldom1.Load FileName

    Dim toRemove As String
    toRemove = "UTF-16"
    Set nodeTemp = xmldom1.selectSingleNode("xml version/encoding[@standalone = '" + toRemove + "']")
    nodeInvoiceItems.parentNode.removeChild (nodeTemp)


    but nothing dne
    Last edited by svibuk; Apr 13th, 2011 at 02:02 AM.

Posting Permissions

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



Click Here to Expand Forum to Full Width