XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 31st, 2004, 01:32 PM
alpinepower alpinepower is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 1 alpinepower User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Here's a tough one!! (CDATA)

I have an XML file I am responsible for, but the system it resides on and the ASP page that call it are not available to me--- so i put together some html to call the file and display its contents. I used CSS to mock up the server's ASP page.

So, my issue is small and deals with the displayed output--- there are sections of CDATA that i need parsed and not ignored as they are when going into the ASP server.

ex: "<description><B><center>DEPLOYMENT: 9/13/2004</center></B></description>"

comes out: "<B><center>DEPLOYMENT: 9/13/2004</center></B>"

but i still need the html to translate that into hypertext

Reply With Quote
  #2  
Old September 3rd, 2004, 09:50 AM
ChrisRC ChrisRC is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: Pittsburgh, PA
Posts: 30 ChrisRC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Well, presentation information - like bold and center - really doesn't belong in your xml anyway. The stylesheet should determine that. That presentation information like this is included in the XML file you're responsible for makes me question the overall approach your organization is taking with whatever they're doing.

You can do it though, but it's a little hard to tell you how you can do it without knowing more about what exactly you're doing with the xml.

A couple tips that might help: First, don't escape the html. As long as it's well formed, it isn't going to cause any problems and by escaping it you're basically saying it isn't markup - which it is. Second, if you're pulling this out with xslt, you'll need to use "copy-of" instead of "value-of".

I still say though, that the XML should actually just be <description>DEPLOYMENT: 9/13/2004</description> and the XSL should add the <div class="description"></div> around it.

Chris Collins
crcdesign.net

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Here's a tough one!! (CDATA)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT