Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
| Search | Today's Posts | Mark Forums Read
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 19th, 2004, 02:27 AM
Authorized User
 
Join Date: Apr 2004
Location: , , .
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default XML from a DB recordset (removal of <>)

I have extracted into an XML file a Recordset from an SQL DB but some garbage like &lt;br&gt;&lt;br&gt; appears now and then in the text. I know that these are < or >, but I would like to filter them. Any ideas?!

Regards,
Theodore.


 
Old June 4th, 2004, 06:53 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Are these characters coming as extra, other than the needed tags there? if so you can observe them and replace with empty string or anything else you want them to be replaced with.

How are you converting the recordset into XML? Are you using ASP or some other frontend tool?

_________________________
-Vijay G
Strive for Perfection
 
Old June 4th, 2004, 07:18 AM
Authorized User
 
Join Date: Apr 2004
Location: , , .
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi happygv,
The way I am converting the recordset into XML is by using vbs script:

Set rsTitles = CreateObject("ADODB.Recordset")
rsTitles.Save szFile, 1 'adPersistXML

Do you know an efficient way to replace the "garbage" from the generated xml files?

Regards,
Theodore.

 
Old July 13th, 2004, 12:28 AM
Registered User
 
Join Date: Jun 2004
Location: pune, MH, India.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi friends
I thought you can use the replace function after the getting the result from recordset but the problem it only mentioned symbol are appearing or some other also because for such each and every such symbol you have to use the replace function.

Sunil Yenpure





Similar Threads
Thread Thread Starter Forum Replies Last Post
<asp:Image /> & hspace Poltroon BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 April 23rd, 2014 04:51 AM
.Net2 xslt does not like the &lt; "<" - &gt; ">" ismailc XSLT 4 October 11th, 2008 04:40 AM
Ch 8: <asp:image> inside <a> & ext.CSS (pg. 274) epc BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 July 12th, 2008 04:37 AM
Need "&" and "<!-- -->" in the output sunrain XSLT 2 January 19th, 2007 05:29 PM
<xsl:for-each select="tokenize($indoc,'&#xA;')"> kapy_kal XSLT 4 June 9th, 2006 07:33 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.