Re: How do I change part of an XML Attribute with XMLDOM
From: Larry C (lccroninMAPSON_at_hotmail.com)
Date: 10/13/04
- Next message: Bryan Dickerson: "Re: Sending multi line email message from vb?"
- Previous message: Mike [MCP VB]: "Re: Sending multi line email message from vb?"
- In reply to: Tony Proctor: "Re: How do I change part of an XML Attribute with XMLDOM"
- Next in thread: Mike D Sutton _at_ Work: "Re: How do I change part of an XML Attribute with XMLDOM"
- Reply: Mike D Sutton _at_ Work: "Re: How do I change part of an XML Attribute with XMLDOM"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 13 Oct 2004 11:54:37 -0400
Thanks for all the answers. Let me further explain what we are trying to
get to. We want to have an interface that a users can decide if they want
to change ERROR to MISTAKE, or anything else they may want ( i.e.. FAULT,
GOOF, BRAIN FART,etc.) The next step would be to search the XML file and
"swap" the new string for the old string. I only want to change the value
of the parameter key "title"
I hope that clears up my question.
I am NOT a very good VB programmer so I apologize for the vagueness of this
question.
Larry C
"Tony Proctor" <tony_proctor@aimtechnology_NoMoreSPAM_.com> wrote in message
news:%23xxSV3QsEHA.2556@tk2msftngp13.phx.gbl...
> The correct way to do this is using an XSL transformation, i.e. applying
an
> XSLT file to your XML DOM to generate a different XML DOM. It should be
> relatively easy to produce, even considering that XSL is a vile
"language".
>
> Sorry I haven't got a simple example I can add here. If no once else has
> demonstrated this by end of today, then I'll make some time to produce a
> working example for you
>
> I'm astonished that none of these replies have suggested this
>
> Tony Proctor
> "L C" <lccroninspamfree@hotmail.com> wrote in message
> news:OxyTPpGsEHA.1816@TK2MSFTNGP09.phx.gbl...
> > Hello,
> >
> > I know how to change/replace an attribute in my XML file. I was
wondering
> > how would I change "part" of that element. I have posted a few lines of
> my
> > XML. I would like to be able to change IDM ERROR to IDM MISTAKE in the
> > entire file.
> >
> > Thanks for the help
> >
> > Larry C
> >
> > - <screen>
> > <screen-name>IDM_ERROR</screen-name>
> > <parameter key="title" value="IDM ERROR" direct="true" />
> > <parameter key="banner" value="/jsps/common/jsps/EmagBanner.jsp" />
> > <parameter key="Role" value="/jsps/common/jsps/Role.jsp" />
> > <parameter key="body" value="/jsps/common/jsps/error.jsp" />
> > <parameter key="footer" value="/jsps/common/jsps/footer.jsp" />
> > </screen>
> >
> >
>
>
- Next message: Bryan Dickerson: "Re: Sending multi line email message from vb?"
- Previous message: Mike [MCP VB]: "Re: Sending multi line email message from vb?"
- In reply to: Tony Proctor: "Re: How do I change part of an XML Attribute with XMLDOM"
- Next in thread: Mike D Sutton _at_ Work: "Re: How do I change part of an XML Attribute with XMLDOM"
- Reply: Mike D Sutton _at_ Work: "Re: How do I change part of an XML Attribute with XMLDOM"
- Messages sorted by: [ date ] [ thread ]