Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 6 of 6
  1. #1
    Join Date
    May 2003
    Location
    Belarus
    Posts
    45

    Talking Need help. How to add element to XML???

    Need help. How to add elements to XML file???

    I have XML file. I can add lines (elements) in NotePad, but I want to make program in AMS5.0 for adding/editing/deleting elements in XML database.

    Help please who know how to add elemets to XML database.

  2. #2
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Have you tried to use XML.SetValue to create a new element? It doesn't specifically state that it will create a new element if one does not exist but it appears like it will. Otherwise you could use the XML.Insert to insert raw XML code.

    Tigg
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  3. #3
    Join Date
    May 2003
    Location
    Belarus
    Posts
    45
    I thought that XML.SetValue can set only existable values.
    About XML.Insert I didnt find any info in XML plugin help.
    Could you give me more info about XML.Insert ?

  4. #4
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Here is the link to the online help file from www.autoplay.org.

    XML Plugin Help

    The XML.SetValue doesn't state if it will create a new element if one does not exist, but I suspect that it will. Try it out and see what it does.

    Tigg
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  5. #5
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728
    Note: XML.Insert was added in the latest version of the XML plugin.
    --[[ Indigo Rose Software Developer ]]

  6. #6
    Join Date
    Nov 2004
    Posts
    1

    Cool Posting Elements Using XML

    A little frustration here for a newby...

    I can add an element, but when I try to insert the xml data after a particular node, it places it within the previous tag so I end up getting the record combined with the previous one and bc the tags are not closed properly, things get messed up. If anyone has any experience with this issue, your wisdom is welcome and appreciated!

Similar Threads

  1. XML format
    By TJ_Tigger in forum AutoPlay Media Studio 5.0
    Replies: 6
    Last Post: 10-04-2005, 12:47 PM
  2. Spotlight: XML Actions Plugin
    By Desmond in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 03-15-2004, 03:56 PM
  3. Add INI Value Help
    By nolazabal in forum Setup Factory 6.0
    Replies: 7
    Last Post: 07-08-2003, 08:50 AM
  4. Getting line returns from XML file into multiline edit field.
    By jeff_rouyer in forum AutoPlay Media Studio 4.0
    Replies: 5
    Last Post: 01-23-2003, 12:36 PM
  5. HOWTO: Add DirectX 8.1 Support to your Setup Factory 6.0 Installation
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-30-2002, 01:55 PM

Posting Permissions

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