Hi, I knew I was going to need to be able to update attributes, so I have this e-mail from last year. In it Lars says that you can't add an attribute and he gives an example of how to update an attribute.
Has anyone figured out how to: 1) Add an Attribute? 2) Update/Remove an Attribute? I have tried to update an attribute and haven't had any luck. I can update the text in the tag. I am using dbXML 1.0b4 (Mustard). thanks, Mark
--- Begin Message ---Hi all, some days ago somebody asked about how to update an attribute of a given element. If the attribute node already exists then this is no problem with XUpdate: <xupdate:modifications xmlns:xupdate="..."> <xupdate:update select="/xpath/to/[EMAIL PROTECTED]"> new value </xupdate:update> </xupdate:modifications> Updating a possibly non-existent attribute (as well as element) is somewhat difficult, because this is not the use case of XUpdate. Either one inserts (after|before) or append an element|attribute node or one updates an existing element|attribute node. Its not possible (with justifiable expense) to find out whether the selected node does not exist or a node en route. But we need to know exactly this to decide whether to create the node (i.e. update with implicite creation) or not. Or did I ignore some other facts? Regards, Lars -- ______________________________________________________________________ Lars Martin mailto:[EMAIL PROTECTED] SMB GmbH http://www.smb-tec.com _______________________________________________ dbXML-Core-General mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dbxml-core-general
--- End Message ---
