Click here to Skip to main content
16,007,687 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: Getting started with XML Pin
MS le Roux1-Jul-02 22:07
MS le Roux1-Jul-02 22:07 
GeneralRe: Getting started with XML Pin
Erik Westermann3-Jul-02 1:59
professionalErik Westermann3-Jul-02 1:59 
GeneralRe: Getting started with XML Pin
9-Jul-02 16:28
suss9-Jul-02 16:28 
GeneralRe: Getting started with XML Pin
Richard Jones10-Jul-02 4:29
Richard Jones10-Jul-02 4:29 
GeneralUpdating an XML file from VC6.0 Pin
Jan R Hansen26-Jun-02 3:11
Jan R Hansen26-Jun-02 3:11 
GeneralRe: Updating an XML file from VC6.0 Pin
act_x27-Jun-02 5:43
act_x27-Jun-02 5:43 
GeneralRe: Updating an XML file from VC6.0 Pin
[James Pullicino]30-Jun-02 23:52
[James Pullicino]30-Jun-02 23:52 
GeneralRe: Updating an XML file from VC6.0 Pin
Ranjan Banerji2-Jul-02 5:45
Ranjan Banerji2-Jul-02 5:45 
You can use DOM to both modify data ( change values of existing nodes) and to modify the structure of your XML (Add or remove nodes).

DOMDocument has functions like CreatNode, CreateElement etc. Once you create a Node you can insert it or append it to an existing to node in your XML. Think of it as dealing with a tree structure.

Changing the value is easier. You just set the new value.

For example node.firstChild.Attributes.getNamedItem("blah").Text = "Yoooo Hoooo"

This will find an attribute named blah in your node and set its text to "Yoooo Hoooo"

You can try doing this yourself by editing the text but that would be reinventing the wheel.

Hope this helped. You may want to look into MSDN for more precise syntax and examples.


GeneralRe: Updating an XML file from VC6.0 Pin
Jan R Hansen2-Jul-02 21:13
Jan R Hansen2-Jul-02 21:13 
GeneralRe: Updating an XML file from VC6.0 Pin
Ranjan Banerji3-Jul-02 6:27
Ranjan Banerji3-Jul-02 6:27 
GeneralNew subquestion : how to format the XML nicely ? Pin
Jan R Hansen8-Jul-02 12:21
Jan R Hansen8-Jul-02 12:21 
GeneralRe: New subquestion : how to format the XML nicely ? Pin
Anonymous9-Jul-02 16:50
Anonymous9-Jul-02 16:50 
GeneralRepeating elements in a sequence. Pin
nay25-Jun-02 5:28
nay25-Jun-02 5:28 
Generalretrieve data with types from XML Pin
jkgh20-Jun-02 7:15
jkgh20-Jun-02 7:15 
GeneralXML Uses Pin
18-Jun-02 0:30
suss18-Jun-02 0:30 
GeneralRe: XML Uses Pin
MS le Roux18-Jun-02 2:16
MS le Roux18-Jun-02 2:16 
GeneralRe: XML Uses Pin
Michael A. Barnhart20-Jun-02 10:11
Michael A. Barnhart20-Jun-02 10:11 
GeneralRe: XML Uses Pin
Christopher Lord23-Jun-02 8:04
Christopher Lord23-Jun-02 8:04 
GeneralRe: XML Uses Pin
Miguel Lopes10-Jul-02 8:28
Miguel Lopes10-Jul-02 8:28 
GeneralRe: XML Uses Pin
Paul Watson12-Jul-02 1:44
sitebuilderPaul Watson12-Jul-02 1:44 
GeneralRe: XML Uses Pin
Miguel Lopes12-Jul-02 3:14
Miguel Lopes12-Jul-02 3:14 
GeneralXML update Pin
Orkun GEDiK7-Jun-02 10:11
Orkun GEDiK7-Jun-02 10:11 
GeneralRe: XML update Pin
jkgh20-Jun-02 7:30
jkgh20-Jun-02 7:30 
Generalselected value in select box using xsl,xml Pin
Hitu5-Jun-02 1:09
Hitu5-Jun-02 1:09 
GeneralRe: selected value in select box using xsl,xml Pin
MS le Roux6-Jun-02 0:01
MS le Roux6-Jun-02 0:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.