Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Append/Import XML from input - IE5-7 - Javascript [Thread Next] Re: Append/Import XML from input - IE5-7 - JavascriptTo: NULL Date: 3/18/2008 8:42:00 PM On Sun, 16 Mar 2008 18:11:28 -0700 (PDT), Ray Proffitt <rayone@g...> wrote: >Folks. > >This works great for XML strings with a document/root element. >But is there anyway of parsing and importing nodes with no root? > >Import = <Where>1=1</Where><OrderBy><FieldRef Name="Test"/></OrderBy> > ><root> ><data> ><query> ><!--HERE--> ></query ></data> ></root> >I should probably give you some context of what I'm trying to achieve. >I've got a clientside HTML page that queries a WSDL and based on what >bindings and elements is has a form is presented to the user. >There are inputs, drop downs and textareas... the textareas are used >to enter free XML... so I need a way of capturing free XML and adding >it as a child of a particular node. It sounds like some sort of internal application. You absolutely cannot guarantee the users will enter any sort of valid XML in the textarea box, and checking for various non-conformances is going to costt you bigtime in terms of programming time. I'd recommend stumping up for a server license of XStandard X(HT)ML editor for use there and in other places : http://xstandard.com/ You might find the evaluation step will allow you to setup custom XML grammars and generally make your life a great deal easier for a few $ HTH Cheers - Neil ------------------------------------------------ Digital Media MVP : 2004-2008 http://mvp.support.microsoft.com/mvpfaqs | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
