Your missing the step where you convert it to a dom object using the @DOM
On Mar 7, 2012, at 9:01 AM, Bill Downall wrote: > I'm sure somebody has the quick trick here. > > I want to create XML in text, and then convert/assign it into a DOM variable. > But both of these look like plain ordinary variables, and the second cannot > be passed to a method that expects a DOM paramaeter. In the debug output of > request varaibles, it doesn't say anything like "myDOM=[DOM: 071BBC38];", it > just shows the HTML text. > > Thanks. > > Bill > > <@assign request$myHTML value=' > <Party id="PROVIDER_DUMMY"> > <FullName>UNKNOWN PROVIDER FOR <@var request$CompanyNum><@var > request$PolNumber></FullName> > <Address> > <AddressTypeCode tc="2">Business</AddressTypeCode> > <Line1></Line1> > <Line2></Line2> > <City></City> > <AddressStateTC> </AddressStateTC> > <Zip> </Zip> > </Address> > <Phone> > <PhoneTypeCode tc="2">Business</PhoneTypeCode> > <DialNumber></DialNumber> > </Phone> > </Party>'> > > <@assign request$myDom value='<@var request$myHTML type="DOM" > element="root()">'> > > > To unsubscribe from this list, please send an email to > [email protected] with "unsubscribe terascript-talk" in the body. Ben Johansen http://www.webspinr.com [email protected] Phone: 503-477-5409 Mobile: 360-600-7775 ---------------------------------------- To unsubscribe from this list, please send an email to [email protected] with "unsubscribe terascript-talk" in the body.
