David Sorry, being dumb (bleary-eyed-Monday-morning). You're obviously using TOXML.
So your choices are: A) If your version of uv supports it, use the TO keyword: SORT BOOK_TITLES TOXML ELEMENTS WITHDTD TO titles This will create &XML& titles.xml and &XML& titles.dtd B) If not, the closest I can get is: >ED VOC PA 6 lines long. ----: p 0001: PA 0002: TERM dumb 0003: DIVERT.OUT ON &UFD& titles.xml TTY.OFF 0004: SORT BOOK_TITLES TOXML ELEMENTS COUNT.SUP NOPAGE 0005: DIVERT.OUT OFF TTY.ON 0006: TERM vt100 Bottom at line 6. The 'TERM dumb' is to stop it putting a clear screen into the titles.xml. BUT I can't get rid of the initial blank first line that way. Brian > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Brian Leach > Sent: 08 January 2007 09:14 > To: [email protected] > Subject: RE: [U2] Outputting XML to a file [uv] > > David > > SORT filename field field TOXML [ELEMENTS] [WITHDTD] > > Or > SELECT fieldlist FROM filename TOXML [ELEMENTS][WITHDTD] > > There is a short tutorial on using XML with Retrieve on the > U2UG knowledge base. > (www.mvopen.org/kb) > > I don't think your version of uv has the 'TO' keyword to > capture XML, so use the DIVERT.OUT syntax in the tutorial. > > Brian > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of > Norman, David > > (SAAS) > > Sent: 07 January 2007 23:21 > > To: [email protected] > > Subject: [U2] Outputting XML to a file [uv] > > > > What's the best way of outputting XML to a file (uv 10.0.16, > > HP-UX) ? I may need to output a DTD, which Cedarville's Download > > doesn't do, and the uv manual says to send to &HOLD& or a COMO, but > > then the output file contains extraneous lines (blanks, and > count of > > records listed) that need to be removed. > > Is there any better solution ?? > > > > Thanks, > > ======================== > > David Norman > > Senior Software Engineer > > SA Ambulance Service > > Box 3, GPO > > Adelaide, South Australia 5001 > > *+61 8 8274 0384 > > * fax +61 8 8271 4844 > > * [EMAIL PROTECTED] > > ------- > > u2-users mailing list > > [email protected] > > To unsubscribe please visit http://listserver.u2ug.org/ > ------- > u2-users mailing list > [email protected] > To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
