Welcome to Dream.In.Code
Getting Help is Easy!

Join 118,658 Programmers for FREE! Ask your question and get quick answers from experts. There are 889 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Invalid Characters in XML content?

 
Reply to this topicStart new topic

Invalid Characters in XML content?

no2pencil
post 28 May, 2008 - 12:59 AM
Post #1


Wet D.I.C.

Group Icon
Joined: 10 May, 2007
Posts: 5,512



Thanked 36 times

Dream Kudos: 2350

Expert In: Goofing Off

My Contributions


What's a good way from the Linux command line to quickly dig up invalid XML characters?

For lack of a better term... this is B*** S***! I'm tired of waisting hours looking for one character... crazy.gif

*sigh* anyhow... now that that's over with, anyone got some ideas?
User is offlineProfile CardPM

Go to the top of the page


BetaWar
post 1 Jun, 2008 - 10:36 PM
Post #2


#include <soul.h>

Group Icon
Joined: 7 Sep, 2006
Posts: 1,669



Thanked 64 times

Dream Kudos: 1075
My Contributions


YOu could simply use the cdata xml tag, it is supposed to make it for anything adn everythign inside of it is left unparsed and as it is.

http://w3schools.com/xml/xml_cdata.asp
User is offlineProfile CardPM

Go to the top of the page

baavgai
post 2 Jun, 2008 - 04:37 AM
Post #3


Dreaming Coder

Group Icon
Joined: 16 Oct, 2007
Posts: 1,786



Thanked 73 times

Dream Kudos: 475

Expert In: C, C++, Java, C#, ASP.NET, PHP, Perl, Python, Oracle, SQL Server, MySql, HTML, JavaScript, Lua

My Contributions


I just open it in a browser, usually. However, running it through any kind of validating processor should give you something useful. The distro I'm on right now (Red Hat WS) has xmllint installed. Don't know what it's packaged with, but it looks like it would do the trick.
User is online!Profile CardPM

Go to the top of the page

.Maleficus.
post 3 Jun, 2008 - 02:36 PM
Post #4


D.I.C Head

**
Joined: 7 Mar, 2008
Posts: 123



Thanked 2 times
My Contributions


QUOTE(baavgai @ 2 Jun, 2008 - 04:37 AM) *

I just open it in a browser, usually. However, running it through any kind of validating processor should give you something useful. The distro I'm on right now (Red Hat WS) has xmllint installed. Don't know what it's packaged with, but it looks like it would do the trick.

It is included with the libxml2 package.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 10/12/08 03:27AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month