🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.language.objectpascal
Article #175

Help for trating an XML file like a INI file.

#175
From: Michele
Date: Sun, 29 Jan 2012 01:28
38 lines
3028 bytes
I need help figuring out how to read and write a particular bit of
data from an XML created by Sping.  I tried using the example found
on :  http://www.swissdelphicenter.ch/en/showcode.php?id=2269 but
couldn't manage to make it work.  Here is a fragment of the XML code
I'm dealing with.  The value with the IP address is the part I want to
read and update.      How do I do this?                <?xml
version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://
www.springframework.org/dtd/spring-beans.dtd">

<beans>

    <!-- ${application_host_server} property is set in Launcher main
the app -->

    <bean id="propertyConfigurer"
 
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="location" value="spring/app-
spring.properties" />
    </bean>

    <!--********************************************-->
    <!-- Begin Remote Services using Springs Http Invoker -->
    <!--********************************************-->

     <!--Setup the Main Chap Service-->
    <bean id="appServiceHttp"
class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
        <property name="serviceUrl">
            <value>http://156.129.122.41/chapserver/remote</value>
            <!--<value>http://localhost:8080/${tomcat_appdir}/remote</
value>-->
        </property>
        <property name="serviceInterface">
            <value>gov.usc.chap.common.service.ChapService</value>
        </property>
    </bean>
Technical Details
Message-ID: <b63b5347-d3b7-480c-a789-485a51659280@o20g2000yqh.googlegroups.com>
Path: arc1-ca.pugleaf.net!lh20ni235590pbb.0!nntp.google.com!news1.google.com!postnews.google.com!o20g2000yqh.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 109d30,32b77044afca4763,start
X-Google-NewGroupId: yes
X-Google-Attributes: gid41d0401e47,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Received: by 10.68.135.231 with SMTP id pv7mr7123885pbb.8.1327800496072;
        Sat, 28 Jan 2012 17:28:16 -0800 (PST)
Path: arc1-ca.pugleaf.net!lh20ni235590pbb.0!nntp.google.com!news1.google.com!postnews.google.com!o20g2000yqh.googlegroups.com!not-for-mail
From: Michele <lemmondg@gmail.com>
Newsgroups: borland.public.delphi.language.objectpascal
Subject: Help for trating an XML file like a INI file.
Date: Sat, 28 Jan 2012 17:28:15 -0800 (PST)
Organization: http://groups.google.com
Lines: 38
Message-ID: <b63b5347-d3b7-480c-a789-485a51659280@o20g2000yqh.googlegroups.com>
NNTP-Posting-Host: 206.18.112.129
Mime-Version: 1.0
X-Trace: posting.google.com 1327800495 17337 127.0.0.1 (29 Jan 2012 01:28:15 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sun, 29 Jan 2012 01:28:15 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: o20g2000yqh.googlegroups.com; posting-host=206.18.112.129; posting-account=psd5BQoAAAC_pDB-EL28KxDqH3jjApjh
User-Agent: G2/1.0
X-Google-Web-Client: true
X-Google-Header-Order: ARLUEHNKC
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
 Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152;
 .NET CLR 3.5.30729; InfoPath.1; .NET4.0C; .NET4.0E),gzip(gfe)
Content-Type: text/plain; charset=ISO-8859-1