SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Apr 2005
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    create a url for xmln in a xml document through VB

    i have a bit of a problem, i doing a vb program to create a xml document
    This part of the code is alright:
    Set Message = oXMLDoc.createElement("NEWB_MESSAGE")
    oXMLDoc.appendChild Message
    Set aXmlns = oXMLDoc.createAttribute("xmlns")
    Message.Attributes.setNamedItem aXmlns

    in the report this shows <MESSAGE xmlns=""...>
    my problem is how to show a url between the commas for the xmlns.

    most things i try,error say cant set a value for a read only node

    anyone able to help me out.
    I trying to create the report from vb, so its not simply typing in a url on the
    xml document

  2. #2
    SitePoint Wizard
    Join Date
    Nov 2004
    Location
    Nelson BC
    Posts
    2,310
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Does this work?
    Code:
    Set Message = oXMLDoc.appendChild(oXMLDoc.createElement("NEWB_MESSAGE"))
    Message.setAttribute "xmlns", "http://blah"


Bookmarks

Posting Permissions

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