OK.. I am creating an XML document (Fedex Tracking). And one of my
attributes on an element is supposed to have an "xsi:" before the attribute
name. It is in my code below.. but the output does not have the "xsi:" The
area to look at is the "noNamespaceSch emaLocation" Any ideas around this?
What I end up with is:
<?xml version="1.0" encoding="UTF-8" ?>
- <TrackShipmentR equest
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
noNamespaceSche maLocation="Tra ckShipment.xsd" DetailScanIndic ator="true"
Version="1.0">
Dim xPI As XmlProcessingIn struction
xPI = myDoc.CreatePro cessingInstruct ion("xml", "version='1 .0'
encoding='UTF-8'")
myDoc.AppendChi ld(xPI)
xElmntRoot = myDoc.CreateEle ment("TrackShip mentRequest")
xElmntRoot.SetA ttribute("xmlns :xsi",
"http://www.w3.org/2001/XMLSchema-instance")
xElmntRoot.SetA ttribute("xsi:n oNamespaceSchem aLocation",
"TrackShipment. xsd")
xElmntRoot.SetA ttribute("Detai lScanIndicator" , "true")
xElmntRoot.SetA ttribute("Versi on", "1.0")
myDoc.AppendChi ld(xElmntRoot)
Stacey Levine
Senior Systems Analyst
Value Music Concepts, Inc.
825-C Frankin Court
Marietta, GA 30067
Work: 770-919-2115 ext 55
Fax: 770-919-2219
St*****@musicfo rasong.com