Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XML
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 19th, 2004, 03: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.


Reply With Quote
  #2 (permalink)  
Old June 4th, 2004, 07:53 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,480
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #3 (permalink)  
Old June 4th, 2004, 08: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.

Reply With Quote
  #4 (permalink)  
Old July 13th, 2004, 01: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

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 05:51 AM
.Net2 xslt does not like the &lt; "<" - &gt; ">" ismailc XSLT 4 October 11th, 2008 05: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 05: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 08:33 AM



All times are GMT -4. The time now is 01:49 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.