This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Java in General and the fly likes escape special characters in parser's input Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "escape special characters in parser Watch "escape special characters in parser New topic
Author

escape special characters in parser's input

Mike Ottinger
Ranch Hand

Joined: Jan 11, 2002
Posts: 125
I hope this is the appropriate forum for this. I'm using jakarta Digester to parse an xml file coming from a backend system. It's going to be large and it contains in some of the xml values brackets and other things that confuse parsers. Is there anyway, either in Digester or in the XSD definition I'm making to describe this data, that I can make the parser ignore characters such as this? I'm looking at solutions that I can do on my end, rather than with the backend, they're fairly limited in what they can do. If I'm not mistaken, dtds have the ability of declaring elements with CDATA which told the parser to ignore the value and continue on. Is there something equivalent with XSDs? Thanks in advance.

- M


SCJP 1.4 SCJD 1.5
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9033
    
  10
I'm sorry. I can't answer your question. I haven't used Digester. However, I noticed that some people in the XML and Related Technologies have talked about it, and also some people in the Other Open Source Projects forum.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: escape special characters in parser's input
 
Similar Threads
using CDATA with XSDs
How to parse special charcacters(&)
Unicode parsing exception
Problem of 'XmlPullParserException'
SAX parser's characters[] method and "\n" problem