Link to home
Start Free TrialLog in
Avatar of Hojoformo
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</meterReadDate>
  <revenue>118.94</revenue>
  <usuage>1208</usuage>
  </UtilityId>
  </BillingData>

Here is my code that create the BillingData element.

' create xml  
 oXML.appendChild(oXML.createProcessingInstruction("xml","version=""1.0"""))  
 oXML.appendChild(oXML.createElement("BillingData")    ????? 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">
 
ASKER CERTIFIED SOLUTION
Avatar of amit_g
amit_g
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial