SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Nov 2006
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    to make one xml as child of another xml...

    "Set doc=XMLUtil.CreateXML()

    doc.CreateDocument "ABRQ"
    Set root=doc.getRootelement()
    root.addchildelementbyname"HDR","" root.addchildelementbyname"CREATEINVESTMENTTERMCAT EGORYTEMPLATE",""
    Set child=root.childelements()
    Set head=child.itembyname("HDR")
    head.addchildelementbyname"SERVERCONTEXT","number"
    Set root1=child.itembyname("CREATEINVESTMENTTERMCATEGO RYTEMPLATE")
    root1.addchildelementbyname"INVESTMENTTERMCATEGORY TEMPLATE",""
    Set child1=root1.childelements()
    Set head1=child1.itembyname("INVESTMENTTERMCATEGORYTEM PLATE")
    head1.addchildelementbyname"CATEGORYNAME","text"
    head1.addchildelementbyname"CATEGORYDESCRIPTION"," text"
    head1.addchildelementbyname"STATUS","boolean" "


    In this case i am creating one xml.









    "Set doc1=xmlutil.CreateXML
    doc1.getrootelement()
    Set root1=head1.childelements()
    Set root2=child2.itembyname("ELEMENT")
    root2.addchildelementbyname"RANGEFROM","number"
    root2.addchildelementbyname"RANGETO","number" "

    In this case i am creating another xml.Please tell me the script by which I can make the second Element as a child element of the forst one.

  2. #2
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: to make one xml as child of another xml...

    I tried to run your code and its not creating an XML its giving an error. First you should fix the code so that 2 different XML are being created and then you should ask how to combine those 2.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 12.50%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 06:05 AM.

Copyright BetaSoft Inc.