- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All Topics<?xml version="1.0" ?>
<FDXRateRequest >
<RequestHeader>
<CustomerTransactionIdenti
<AccountNumber>4532434324<
<MeterNumber>34343434</Met
<CarrierCode>dfdfdsfd</Car
</RequestHeader>
<ShipDate>2004-03-24</Ship
<DropoffType>REGULARPICKUP
<Service>STANDARDOVERNIGHT
<Packaging>FEDEXBOX</Packa
<WeightUnits>LBS</WeightUn
<Weight>5.10</Weight>
<OriginAddress>
<Line1>ererewrewreDr</Line
<Line2>Ste 567</Line2>
<City>Indianapolis</City>
<StateOrProvinceCode>IN</S
<PostalCode>462292014</Pos
<CountryCode>US</CountryCo
</OriginAddress>
<DestinationAddress>
<Line1>Address1</Line1>
<Line2>Address2</Line2>
<City>SomeCity</City>
<StateOrProvinceCode>SS</S
<PostalCode>55555</PostalC
<CountryCode>US</CountryCo
</DestinationAddress>
<Payment>
<PayorType>CREDITCARD</Pay
<Payor>
<AccountNumber>534657676</
<CountryCode>US</CountryCo
</Payor>
<CreditCard>
<Number>54353D5435435</Num
<Type>VISA</Type>
<ExpirationDate>0705</Expi
</CreditCard>
</Payment>
<Dimensions>
<Length>4</Length>
<Width>4</Width>
<Height>5</Height>
<Units>IN</Units>
</Dimensions>
<DeclaredValue>
<Value>50.00</Value>
<CurrencyCode>USA</Currenc
</DeclaredValue>
<SpecialServices>
</SpecialServices>
<HomeDelivery>
</HomeDelivery>
<PackageCount>1</PackageCo
<VariableHandlingCharges>
</VariableHandlingCharges>
<International>
</International>
</FDXRateRequest >
I wanted to change the "address1" value to something else.
is this correct way of doing this. i am new to DOM
// load xml doc
xmldoc = new ActiveXObject("Microsoft.X
xmldoc.async=false
xmldoc.load("FedexShipRequ
alert(xmldoc)
rootNode = xmldoc.documentElement
<!-- Set Destination Shipping Address -->
address = rootNode.getElementsByTagN
address1 = address(0).firstChild
alert(address1.firstChild.
<!-- Address 1 Required -->
address1.firstChild.nodeVa
alert(address1.firstChild.
alert(address(0).firstChil
<!-- Address 2 Optional -->
address2 = address(0).firstChild.next
alert(address2.firstChild.
address2.firstChild.nodeVa
alert(address2.firstChild.
alert("Line2" + address(0).firstChild.node
Thank you
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: anilgupt_76Posted on 2004-03-18 at 05:14:41ID: 10623411
Try out this function for changing the address1 value with some other value. This is tested one. This will work. MLDOM")
DXRateRequ est/Destin ationAddre ss/Line1") .text = "Other Address";
ode("FDXRa teRequest/ Destinatio nAddress/L ine1").tex t)
function fnChangeAddress()
{
// load xml doc
var xmldoc = new ActiveXObject("Microsoft.X
xmldoc.async=false
xmldoc.load("test.xml")
alert(xmldoc.xml)
xmldoc.selectSingleNode("F
alert(xmldoc.selectSingleN
alert(xmldoc.xml)
}
Cheers!!!
+Anil