Hojoformo
asked on
XML question about oxml.appendChild - Using Classic ASP.
I have a question about creating an XML file. How can I add some text to a XML element. For example, I am currently creating and element named - <BillingData> but I want to really create this instead
<BillingData xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://apogee.net/WebService">
Here is what i am producing now:
<?xml version="1.0" ?>
- <BillingData>
<BillingCycleData />
- <UtilityId id="0">
<meterReadDate>200509</met erReadDate >
<revenue>118.94</revenue>
<usuage>1208</usuage>
</UtilityId>
</BillingData>
Here is my code that create the BillingData element.
' create xml
oXML.appendChild(oXML.crea teProcessi ngInstruct ion("xml", "version=" "1.0"""))
oXML.appendChild(oXML.crea teElement( "BillingDa ta") ????? can text be added to this statement
I want to create the BillingData so it looks like this:
<BillingData xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://apogee.net/WebService">
<BillingData xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://apogee.net/WebService">
Here is what i am producing now:
<?xml version="1.0" ?>
- <BillingData>
<BillingCycleData />
- <UtilityId id="0">
<meterReadDate>200509</met
<revenue>118.94</revenue>
<usuage>1208</usuage>
</UtilityId>
</BillingData>
Here is my code that create the BillingData element.
' create xml
oXML.appendChild(oXML.crea
oXML.appendChild(oXML.crea
I want to create the BillingData so it looks like this:
<BillingData xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://apogee.net/WebService">
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.